/* === Landing / Auth Page === */

.landing-page {
    display: flex;
    min-height: 100vh;
    font-family: var(--font);
}

/* ── Left: Hero Side ── */

.landing-hero {
    flex: 1.1;
    background: linear-gradient(135deg, #1e3a5f 0%, #2F5597 40%, #4472C4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern overlay */
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Floating gradient orbs */
.landing-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.landing-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.landing-headline {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.landing-subhead {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    margin-bottom: 44px;
}

/* Feature list */
.landing-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.landing-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.landing-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
}

.landing-feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.landing-feature-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

/* Stats / social proof */
.landing-social-proof {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.landing-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-stat-num {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.landing-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.landing-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
}

/* ── Right: Form Side ── */

.landing-form-side {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

/* Tab toggle */
.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

.auth-tab:hover:not(.active) {
    color: var(--text);
}

.auth-card .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Sign-up benefits */
.signup-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.signup-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

.signup-benefit svg {
    flex-shrink: 0;
}

/* Form */
.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #f8fafc;
    color: var(--text);
}

.auth-card input::placeholder {
    color: #94a3b8;
}

.auth-card input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(68,114,196,0.12);
    background: #fff;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 4px;
}

.auth-card .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

.auth-card .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer link */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-footer-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Messages */
.auth-card .error-msg {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
    line-height: 1.5;
}

.auth-card .error-msg.visible {
    display: block;
}

.auth-card .success-msg {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
    line-height: 1.5;
}

.auth-card .success-msg.visible {
    display: block;
}

/* Pending banner */
.pending-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: center;
}

.pending-icon {
    margin-bottom: 8px;
}

.pending-banner h3 {
    color: #b45309;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pending-banner p {
    font-size: 13px;
    color: #78716c;
    line-height: 1.5;
}

/* ── Refresh button (kept from original, used in main app) ── */

.btn-refresh {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}
.btn-refresh:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.btn-refresh:disabled {
    opacity: 0.5;
    cursor: default;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Responsive: Stack on mobile ── */

@media (max-width: 900px) {
    .landing-page {
        flex-direction: column;
    }

    .landing-hero {
        padding: 40px 24px 36px;
    }

    .landing-headline {
        font-size: 30px;
    }

    .landing-subhead {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .landing-features {
        gap: 14px;
        margin-bottom: 28px;
    }

    .landing-social-proof {
        gap: 16px;
        padding-top: 24px;
    }

    .landing-stat-num {
        font-size: 20px;
    }

    .landing-form-side {
        flex: none;
        padding: 32px 24px 48px;
    }
}

@media (max-width: 480px) {
    .landing-hero {
        padding: 32px 20px 28px;
    }

    .landing-headline {
        font-size: 26px;
    }

    .landing-feature-desc {
        display: none;
    }

    .landing-form-side {
        padding: 28px 20px 40px;
    }

    .landing-social-proof {
        flex-wrap: wrap;
        gap: 12px;
    }

    .landing-stat-divider {
        display: none;
    }
}
