/* Invision MuWeb - Auth pages (login, register, recovery) */

.auth-page {
    padding: 20px 30px;
}

.auth-page .auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 0;
}

.auth-page .auth-title {
    font-size: 18px;
    font-weight: 700;
    color: #282f35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-page hr {
    margin: 16px 0 24px;
    opacity: 0.45;
}

.auth-alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}

.auth-alert-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #e23163;
}

.auth-alert-success {
    background: #eafaf1;
    border: 1px solid #c3e6cb;
    color: #1a7a4a;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.auth-field label .req {
    color: #e23163;
}

.auth-field input,
.auth-field select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    background: #f9f9f9;
    color: #282f35;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: #2a7de9;
    box-shadow: 0 0 0 3px rgba(42, 125, 233, 0.12);
    background: #fff;
}

.auth-btn-primary {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #2a7de9 0%, #1a5fb8 100%);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(42, 125, 233, 0.35);
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #999;
}

.auth-footer a {
    color: #282f35;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #2a7de9;
}

.auth-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-size: 12px;
    color: #555;
}

.auth-terms-row input {
    margin-top: 3px;
    width: auto;
    height: auto;
}

.auth-terms-row button.auth-link {
    background: none;
    border: none;
    padding: 0;
    color: #2a7de9;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
}

.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-overlay.is-open {
    display: flex;
}

.auth-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #f8fafc;
}

.auth-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #282f35;
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.auth-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

.auth-modal-body h2,
.auth-modal-body h3 {
    color: #282f35;
    margin-top: 0;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 576px) {
    .auth-grid-2 {
        grid-template-columns: 1fr;
    }

    .auth-page {
        padding: 16px;
    }
}
