/* ========================================
   AUTH PAGES — Split-Screen Modern Design
   ======================================== */

/* --- Split Screen Layout --- */
.auth-split {
    min-height: 100vh;
    display: flex;
}

.auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.15) 0%, transparent 70%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.auth-brand-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.auth-brand-logo .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    margin-right: 0.75rem;
    font-size: 1.5rem;
    vertical-align: middle;
    backdrop-filter: blur(10px);
}

.auth-brand-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.auth-brand-features li i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    font-size: 1rem;
    color: #60a5fa;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8fafc;
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.4s ease-out;
}

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

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* --- Form Card --- */
.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

/* --- Form Elements --- */
.auth-form .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-form .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.875rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.auth-form .form-control:focus {
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: #fff;
}

.auth-form .input-group-text {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px 0 0 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-form .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.auth-form .input-group:focus-within .input-group-text {
    border-color: var(--primary, #2563eb);
}

/* --- Password Toggle --- */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    z-index: 5;
}

.password-toggle:hover {
    color: #475569;
}

/* --- Buttons --- */
.auth-form .btn-primary {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}

/* --- Divider --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

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

/* --- Social Login --- */
.auth-social-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.auth-social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.auth-social-btn i {
    font-size: 1.1rem;
}

.auth-social-btn.google i { color: #ea4335; }
.auth-social-btn.microsoft i { color: #00a4ef; }

/* --- Footer Links --- */
.auth-form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-form-footer a {
    color: var(--primary, #2563eb);
    text-decoration: none;
    font-weight: 600;
}

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

/* --- Divider Text --- */
.auth-or-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
}

.auth-or-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.auth-or-divider span {
    background: #f8fafc;
    padding: 0 0.75rem;
    position: relative;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Alerts --- */
.auth-alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* --- Plan Selector (Register) --- */
.plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.plan-option {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.plan-option:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.plan-option.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option .plan-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.plan-option .plan-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2563eb;
}

.plan-option .plan-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
}

.plan-option .plan-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2563eb;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.plan-option .plan-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    text-align: left;
    font-size: 0.78rem;
    color: #475569;
}

.plan-option .plan-features li {
    padding: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.plan-option .plan-features li i {
    color: #22c55e;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.plan-option .plan-features li.disabled i {
    color: #cbd5e1;
}

.plan-option .plan-features li.disabled {
    color: #94a3b8;
    text-decoration: line-through;
}

/* --- Step Indicator (Register) --- */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #94a3b8;
}

.auth-step.active .auth-step-number {
    background: #2563eb;
    color: #fff;
}

.auth-step.completed .auth-step-number {
    background: #22c55e;
    color: #fff;
}

.auth-step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
}

.auth-step.active .auth-step-label {
    color: #0f172a;
    font-weight: 600;
}

.auth-step-connector {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

.auth-step.completed + .auth-step-connector {
    background: #22c55e;
}

/* --- Trial Badge --- */
.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-brand-side {
        padding: 2rem;
        min-height: auto;
    }

    .auth-brand-content {
        max-width: 100%;
    }

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

    .auth-form-side {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-side {
        padding: 1.5rem;
    }

    .auth-brand-logo {
        font-size: 1.75rem;
    }

    .auth-brand-tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .auth-form-side {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .auth-form-header h1 {
        font-size: 1.35rem;
    }

    .plan-selector {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .auth-steps {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .auth-step-connector {
        width: 20px;
    }
}

/* --- Login Footer --- */
.auth-login-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-login-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
    text-decoration: none;
}

.auth-login-footer a:hover {
    color: #2563eb;
}

/* --- Register Agreement --- */
.auth-agreement {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

.auth-agreement a {
    color: #2563eb;
    text-decoration: none;
}

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

/* --- Loading Spinner --- */
.auth-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-loading.show {
    display: inline-block;
}

/* --- Email Verify Banner --- */
.email-verify-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.email-verify-banner i {
    font-size: 1.5rem;
    color: #d97706;
    flex-shrink: 0;
}

.email-verify-banner .banner-text {
    flex: 1;
}

.email-verify-banner .banner-text strong {
    display: block;
    font-size: 0.9rem;
    color: #92400e;
}

.email-verify-banner .banner-text small {
    font-size: 0.8rem;
    color: #b45309;
}

.email-verify-banner .btn-resend {
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.email-verify-banner .btn-resend:hover {
    background: #b45309;
}
