/* Auth pages — login & register (matches public marketing UI) */

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

.auth-page .auth-main {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 2rem 0 3.5rem;
}

.auth-benefits {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(32, 75, 123, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(32, 75, 123, 0.07);
    height: 100%;
}

.auth-benefits-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color, #204B7B);
    margin-bottom: 0.75rem;
}

.auth-benefits h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.auth-benefits-lead {
    color: var(--text-secondary, #64748b);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: var(--text-secondary, #475569);
}

.auth-benefit-list li i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(32, 75, 123, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(32, 75, 123, 0.1);
}

@media (min-width: 768px) {
    .auth-card {
        padding: 2.25rem 2.5rem;
    }
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card-header img {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
}

.auth-card-header h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 0.35rem;
}

.auth-card-header p {
    color: var(--text-secondary, #64748b);
    font-size: 0.92rem;
    margin: 0;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary, #334155);
    margin-bottom: 0.4rem;
}

.auth-field .form-control,
.auth-field .form-select {
    border: 1px solid rgba(32, 75, 123, 0.15);
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field .form-control:focus,
.auth-field .form-select:focus {
    border-color: var(--primary-color, #204B7B);
    box-shadow: 0 0 0 3px rgba(32, 75, 123, 0.1);
}

.auth-field .field-error {
    display: block;
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.auth-field .field-error.hide {
    display: none !important;
}

.auth-submit-btn {
    border-radius: 0.75rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 16px rgba(32, 75, 123, 0.2);
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}

.auth-footer-link a {
    color: var(--primary-color, #204B7B);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-forgot {
    text-align: right;
    margin: -0.35rem 0 1rem;
    font-size: 0.85rem;
}

.auth-forgot a {
    color: var(--primary-color, #204B7B);
    text-decoration: none;
}

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

.auth-alert {
    border-radius: 0.65rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Register wizard steps */
.hide {
    display: none !important;
}

.auth-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-step {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    background: rgba(32, 75, 123, 0.04);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.auth-step.active {
    color: var(--primary-color, #204B7B);
    background: rgba(32, 75, 123, 0.08);
    border-color: rgba(32, 75, 123, 0.15);
}

.auth-step.done {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

.auth-demo-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.85rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.82rem;
}

.auth-demo-box table {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.auth-demo-box .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Select2 overrides on auth pages */
.auth-card .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 42px;
    border: 1px solid rgba(32, 75, 123, 0.15);
    border-radius: 0.65rem;
    padding: 0.35rem 0.5rem;
}

.auth-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0.35rem;
    color: var(--text-primary, #334155);
}

.auth-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

@media (max-width: 991px) {
    .auth-benefits {
        margin-bottom: 1.5rem;
    }
}
