:root {
    --auth-primary: #2B5F9D;
    --auth-primary-dark: #3871B5;
    --auth-text: #111827;
    --auth-muted: #6B7280;
    --auth-border: #E5E7EB;
    --auth-bg: #F8FAFC;
    --auth-radius: 14px;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Open Sans', sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
}

.auth-page {
    display: flex;
    min-height: 100vh;
}

.auth-brand-panel {
    flex: 1;
    background: var(--auth-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    text-align: center;
}

.auth-brand-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 28px;
}

.auth-brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.auth-brand-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(172, 207, 248, 0.95);
    margin: 0;
    max-width: 320px;
}

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

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 40px 36px;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--auth-text);
}

.auth-card-subtitle {
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0 0 28px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.auth-field .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    color: var(--auth-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field .form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(43, 95, 157, 0.15);
}

.auth-field .form-control.is-invalid {
    border-color: #dc3545;
}

.auth-field .invalid-feedback,
.auth-field .text-danger {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    color: #dc3545;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.auth-check label {
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--auth-primary);
    border: 1px solid var(--auth-primary);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-submit:hover {
    background: var(--auth-primary-dark);
    border-color: var(--auth-primary-dark);
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.auth-footer-link {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-footer-link a {
    color: var(--auth-primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

.auth-mobile-logo {
    display: none;
    max-width: 180px;
    margin: 0 auto 24px;
}

@media (max-width: 991px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-logo {
        display: block;
    }

    .auth-form-panel {
        padding: 32px 20px;
    }

    .auth-card {
        padding: 32px 24px;
    }
}
