/*
 * Login — Base · Light Mode
 * Dark overrides: login-dark.css (@media prefers-color-scheme: dark)
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lp-font:      'Geist Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --lp-bg-form:   #f4f5f7;
    --lp-text:      #0f172a;
    --lp-muted:     #64748b;
    --lp-border:    rgba(0, 0, 0, 0.09);
    --lp-input-bg:  #ffffff;
}

html, body {
    height: 100%;
    font-family: var(--lp-font);
    background: var(--lp-bg-form);
    -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════
   SPLIT LAYOUT
════════════════════════════════════════════════════ */

.lp-split { display: flex; min-height: 100vh; }

/* ════════════════════════════════════════════════════
   LEFT — Brand panel
════════════════════════════════════════════════════ */

.lp-brand {
    display: none;
    width: 50%;
    flex-shrink: 0;
    background: #000000;
    padding: 64px 72px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) { .lp-brand { display: flex; } }

/* Grid texture */
.lp-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

/* Radial glow — bottom left */
.lp-brand::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(184,196,208,0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Logo block — protagonist ── */
.lp-brand-mark {
    position: relative;
    z-index: 1;
    width: 100%;
}

.lp-logo {
    width: 172px;
    height: 172px;
    display: block;
    margin-bottom: 36px;
}

/* Name + subtitle below the icon */
.lp-logo-label {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-logo-name {
    font-family: 'Geist Sans', 'Inter', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    display: block;
    line-height: 1;
}

.lp-logo-sub {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    display: block;
}

/* Separator between logo-name and logo-sub */
.lp-logo-sub::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 2px;
    margin: 14px 0 10px;
}

/* ── Footer — absolute at bottom ── */
.lp-brand-foot {
    position: absolute;
    bottom: 52px;
    left: 52px;
    right: 52px;
    z-index: 1;
}

.lp-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
    font-weight: 400;
    max-width: 240px;
}

.lp-brand-copy {
    margin-top: 18px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.13);
    letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════
   RIGHT — Form panel
════════════════════════════════════════════════════ */

.lp-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--lp-bg-form);
    position: relative;
    min-width: 0;
}

.lp-form-inner { width: 100%; max-width: 360px; }

/* ── Mobile brand (visible when left panel hidden) ── */
.lp-mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
}
@media (min-width: 1024px) { .lp-mobile-brand { display: none; } }

.lp-mobile-icon { width: 28px; height: 28px; flex-shrink: 0; }

/* Mobile icon fills — light mode */
.lp-mob-sq1    { fill: #b8c4d0; }
.lp-mob-sq2    { fill: #5a6a7e; }
.lp-mob-circle { fill: #070a10; }

.lp-mobile-sep {
    width: 1px;
    height: 22px;
    background: var(--lp-border);
    flex-shrink: 0;
}

.lp-mobile-uj {
    font-family: 'Geist Sans', 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--lp-text);
}

/* ── Form header ── */
.lp-form-hdr { margin-bottom: 32px; }

.lp-form-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lp-text);
    line-height: 1.1;
    margin-bottom: 8px;
}

.lp-form-sub {
    font-size: 0.875rem;
    color: var(--lp-muted);
    font-weight: 400;
    line-height: 1.5;
}

/* ── Fields ── */
.lp-field { margin-bottom: 16px; }

.lp-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-muted);
    margin-bottom: 7px;
}

.lp-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: var(--lp-input-bg);
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--lp-font);
    color: var(--lp-text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lp-input::placeholder { color: rgba(100,116,139,0.4); }

.lp-input:focus {
    border-color: rgba(15,23,42,0.5);
    box-shadow: 0 0 0 3px rgba(15,23,42,0.06);
}

/* ── Submit ── */
.lp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    background: #000000;
    color: #ffffff;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--lp-font);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(.4,0,.2,1),
                box-shadow 0.2s cubic-bezier(.4,0,.2,1);
    margin-top: 12px;
}

.lp-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,0.20); }
.lp-submit:active { transform: translateY(0); box-shadow: none; }
.lp-submit i { font-size: 0.73rem; }

/* ── Alerts ── */
.lp-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.lp-alert--error   { background: rgba(239,68,68,0.07);   border: 1px solid rgba(239,68,68,0.18);  color: #dc2626; }
.lp-alert--success { background: rgba(16,185,129,0.07);  border: 1px solid rgba(16,185,129,0.18); color: #059669; }

/* ── Misc ── */
.lp-turnstile { margin-bottom: 4px; }

.lp-copy {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    text-align: center;
    font-size: 0.65rem;
    color: var(--lp-muted);
    opacity: 0.4;
    letter-spacing: 0.04em;
    pointer-events: none;
}
