*, *::before, *::after { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f5 !important;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: flex;
    width: 900px;
    max-width: 95vw;
    min-height: 540px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 9, 54, 0.18);
    animation: authFadeUp 0.5s ease-out;
}

.auth-container--tall {
    min-height: 620px;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-image-panel {
    position: relative;
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f5f0e8;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
}

.auth-form-content {
    width: 100%;
    max-width: 360px;
}

.auth-form-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    margin-bottom: 12px;
}

.auth-page .form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: #444;
}

.auth-page .input-group-text {
    background: #f8f9fa;
    border-right: none;
    color: #0A0936;
}

.auth-page .input-group .form-control {
    border-left: none;
}

.auth-page .input-group .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.auth-page .input-group:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(10, 9, 54, 0.15);
    border-radius: .375rem;
}

.auth-page .input-group:focus-within .input-group-text,
.auth-page .input-group:focus-within .form-control {
    border-color: #0A0936;
}

.auth-page .input-group .form-control.is-invalid {
    border-color: #dc3545;
}

.auth-page .invalid-feedback {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.auth-page .btn-primary {
    background: #0A0936;
    border-color: #0A0936;
}

.auth-page .btn-primary:hover:not(:disabled) {
    background: #1B365D;
    border-color: #1B365D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 9, 54, 0.3);
}

.auth-page .btn-primary:disabled {
    background: #0A0936;
    border-color: #0A0936;
    opacity: 0.85;
}

.auth-page .btn-google {
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.auth-page .btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #202124;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0;
    color: #868e96;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.auth-copyright {
    text-align: center;
    margin-top: 1rem;
    color: #868e96;
    font-size: 0.75rem;
}

.auth-link {
    color: #0A0936;
    text-decoration: none;
}

.auth-link:hover {
    color: #1B365D;
    text-decoration: underline;
}

.auth-turnstile {
    display: flex;
    justify-content: center;
}

/* Register — centered card only (no side image; login unchanged) */
.auth-page--register {
    background: #f0f2f5 !important;
    padding: 24px 16px;
    align-items: flex-start;
}

@media (min-width: 576px) {
    .auth-page--register {
        align-items: center;
        padding: 40px 16px;
    }
}

.auth-page--register .auth-register-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(10, 9, 54, 0.12);
    padding: 40px 36px 32px;
    animation: authFadeUp 0.5s ease-out;
}

.auth-page--register .auth-form-content {
    max-width: none;
}

.auth-page--register .auth-register-title {
    color: #0A0936;
    font-size: 1.35rem;
}

.auth-page--register .auth-form-logo {
    margin-bottom: 14px;
}

.auth-page--register .auth-copyright {
    margin-top: 1.25rem;
    padding-top: 0;
}

@media (max-width: 575px) {
    .auth-page--register {
        padding: 0;
        background: #fff !important;
        align-items: stretch;
    }

    .auth-page--register .auth-register-card {
        max-width: none;
        min-height: 100vh;
        padding: 28px 20px 24px;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-page--register .auth-form-content {
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
}

@media (max-width: 991px) {
    body.auth-page:not(.auth-page--register) {
        background: #0A0936;
    }

    .auth-container {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        position: relative;
    }

    .auth-image-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background-size: min(320px, 80vw) auto;
    }

    .auth-form-panel {
        position: relative;
        z-index: 1;
        padding: 30px 20px;
        min-height: 100vh;
    }

    .auth-container .auth-form-content {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 32px 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    }
}
