/* ==========================================================================
   WPIT Login Page — wpit-login-page.css
   Design: WPITMediaCloud — dark navy, gold accents, editorial
   ========================================================================== */

:root {
    --log-navy:       #0a1628;
    --log-navy-mid:   #1a3a5c;
    --log-navy-light: #1e4a6e;
    --log-gold:       #f0c040;
    --log-white:      #ffffff;
    --log-white-80:   rgba(255,255,255,0.80);
    --log-white-50:   rgba(255,255,255,0.50);
    --log-white-20:   rgba(255,255,255,0.12);
    --log-white-08:   rgba(255,255,255,0.06);
    --log-green:      #4caf7d;
    --log-radius:     12px;
    --log-radius-sm:  7px;
    --log-trans:      0.22s ease;
}

/* ── Outer wrap ───────────────────────────────────────────────────────────── */
.wpit-login-wrap {
    display: flex;
    min-height: 80vh;
    width: 100%;
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--log-navy);
}
.wpit-login-wrap * { box-sizing: border-box; }
.wpit-login-wrap p { margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════════
   LEFT PANEL
   ══════════════════════════════════════════════════════════════════════════════ */
.wpit-login-left {
    flex: 0 0 52%;
    min-height: 80vh;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(240,192,64,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(30,74,110,0.8) 0%, transparent 60%),
        linear-gradient(155deg, #0d2040 0%, #1a3a5c 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Decorative grid */
.wpit-login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
/* Gold accent top line */
.wpit-login-left::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--log-gold), transparent);
    pointer-events: none;
}

.wpit-login-left__inner {
    position: relative;
    z-index: 1;
    padding: 52px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
}

/* Logo */
.wpit-login-logo {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: sans-serif;
}
.wpit-login-logo__brand { color: var(--log-white); }
.wpit-login-logo__media { color: var(--log-gold); }
.wpit-login-logo__cloud { color: var(--log-white-50); }

/* Headline */
.wpit-login-headline {
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--log-white);
    margin: 0;
    letter-spacing: -0.01em;
}
.wpit-login-headline em {
    color: var(--log-gold);
    font-style: normal;
    font-weight: 700;
}

/* Sub */
.wpit-login-sub {
    color: var(--log-white-80);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Stats row */
.wpit-login-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--log-white-08);
    border: 1px solid var(--log-white-20);
    border-radius: var(--log-radius);
    padding: 18px 24px;
}
.wpit-login-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}
.wpit-login-stat__num {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: sans-serif;
    color: var(--log-gold);
    letter-spacing: -0.02em;
}
.wpit-login-stat__text {
    font-size: 0.68rem;
    font-family: sans-serif;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--log-white-50);
}
.wpit-login-stat__divider {
    width: 1px;
    height: 36px;
    background: var(--log-white-20);
    flex-shrink: 0;
}

/* Feature list */
.wpit-login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wpit-login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--log-white-80);
    font-size: 0.85rem;
    font-family: sans-serif;
    line-height: 1.4;
}
.wpit-login-feature svg {
    flex-shrink: 0;
}

/* Register CTA */
.wpit-login-register-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--log-white-20);
}
.wpit-login-register-cta > span {
    color: var(--log-white-50);
    font-size: 0.82rem;
    font-family: sans-serif;
}
.wpit-login-register-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--log-gold);
    color: var(--log-navy);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background var(--log-trans), transform var(--log-trans);
}
.wpit-login-register-btn:hover {
    background: #e0b030;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--log-navy);
}

/* ══════════════════════════════════════════════════════════════════════════════
   RIGHT PANEL — FORM
   ══════════════════════════════════════════════════════════════════════════════ */
.wpit-login-right {
    flex: 0 0 48%;
    background: #f4f1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 40px;
    min-height: 80vh;
}

.wpit-login-form-wrap {
    width: 100%;
    max-width: 420px;
}

/* Form title override */
.wpit-login-form-wrap h2,
.wpit-login-form-wrap .woocommerce-form-login h2 {
    font-size: 1.7rem !important;
    font-weight: 600 !important;
    color: #0a1628 !important;
    margin: 0 0 28px !important;
    font-family: 'Source Serif 4', Georgia, serif !important;
    letter-spacing: -0.01em !important;
    border: none !important;
    padding: 0 !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .wpit-login-wrap { flex-direction: column; }
    .wpit-login-left { flex: none; min-height: auto; }
    .wpit-login-left__inner { padding: 36px 24px 28px; gap: 22px; }
    .wpit-login-right { flex: none; min-height: auto; padding: 36px 24px; align-items: flex-start; }
    .wpit-login-headline { font-size: 1.8rem; }
    .wpit-login-stats { gap: 12px; padding: 14px 16px; }
    .wpit-login-stat__num { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .wpit-login-stats { flex-direction: column; gap: 12px; }
    .wpit-login-stat__divider { width: 40px; height: 1px; }
}
