/* ─────────────────────────────────────────────
   Login / Signup Pages — all values from tokens.css
   Scoped with .lp- prefix
   ───────────────────────────────────────────── */

.lp-root {
    /* Local aliases → global tokens (with fallbacks) */
    --lp-navy:         var(--brand-navy,              #0a1f44);
    --lp-navy-soft:    var(--brand-navy-soft,         #142a52);
    --lp-accent:       var(--brand-accent-soft,       #b8dcf0);
    --lp-blue:         var(--brand-blue,              #1e5fc4);
    --lp-blue-hover:   var(--brand-blue-hover,        #174fa8);
    --lp-blue-ring:    var(--brand-blue-ring,         rgba(30,95,196,0.12));
    --lp-text:         var(--color-text,              #0f172a);
    --lp-text-muted:   var(--color-text-muted,        #94a3b8);
    --lp-text-soft:    var(--color-text-label,        #273449);
    --lp-text-helper:  var(--color-text-helper,       #526174);
    --lp-border:       var(--color-input-border,      #d8dee8);
    --lp-border-hover: var(--color-input-border-hover, #b9c3d1);
    --lp-bg-soft:      var(--color-bg-auth,           #f7f9fc);
    --lp-bg-white:     var(--color-bg,                #ffffff);
    --lp-placeholder:  var(--color-placeholder,       #a0a9b7);
    --lp-divider:      var(--color-divider,           #e8edf3);
    --lp-danger:       var(--brand-danger,            #dc2626);

    min-height: 100svh;
    background: var(--lp-bg-soft);
    color: var(--lp-text);
}

.lp-layout {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
}

/* ─── Branding panel ─────────────────────── */
.lp-branding {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 64px;
    background:
        radial-gradient(circle at 15% 15%, rgba(30, 95, 196, 0.18), transparent 32%),
        radial-gradient(circle at 85% 85%, rgba(210, 69, 30, 0.12), transparent 30%),
        var(--lp-navy);
    color: var(--lp-bg-white);
}

.lp-branding::before {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -260px; top: -260px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.lp-branding::after {
    content: "";
    position: absolute;
    width: 720px; height: 720px;
    left: -480px; bottom: -500px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.lp-branding-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.lp-logo-mark {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--lp-bg-white);
    color: var(--lp-navy);
    font-size: 19px;
    font-weight: var(--fw-extrabold);
}

.lp-logo-text { color: var(--lp-bg-white); }

.lp-branding-copy { margin-top: 110px; }

.lp-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--lp-accent);
    font-size: 13px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-branding h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(42px, 4vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--lp-bg-white);
}

.lp-branding h1 span { color: var(--lp-accent); }

.lp-branding-copy p {
    max-width: 560px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.7;
}

.lp-branding-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.lp-dot { opacity: 0.5; }

/* ─── Form panel ─────────────────────────── */
.lp-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--lp-bg-white);
}

.lp-form-container {
    width: 100%;
    max-width: 440px;
}

.lp-card { width: 100%; }

.lp-header { margin-bottom: 28px; }

.lp-header h2 {
    margin: 0;
    color: var(--lp-text);
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.lp-header p {
    margin: 10px 0 0;
    color: var(--lp-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.lp-mobile-logo { display: none; }

/* ─── Social login ───────────────────────── */
.lp-social-buttons { display: grid; gap: 10px; }

.lp-social-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    background: var(--lp-bg-white);
    color: var(--lp-text);
    font-size: 14px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: border-color var(--t-fast) var(--ease),
                background var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease);
}

.lp-social-btn:hover { border-color: var(--lp-border-hover); background: var(--color-bg-soft); }
.lp-social-btn:focus-visible {
    outline: 3px solid var(--lp-blue-ring);
    outline-offset: 2px;
}

.lp-google-icon {
    display: grid;
    place-items: center;
    width: 20px; height: 20px;
    font-size: 16px;
    font-weight: var(--fw-extrabold);
}

/* ─── Divider ────────────────────────────── */
.lp-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lp-divider::before,
.lp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lp-divider);
}

.lp-divider span { white-space: nowrap; }

/* ─── Form fields ────────────────────────── */
.lp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-field label,
.lp-label-row label {
    color: var(--lp-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.lp-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--lp-border);
    border-radius: 9px;
    background: var(--lp-bg-white);
    color: var(--lp-text);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease);
    box-sizing: border-box;
}

.lp-field input::placeholder { color: var(--lp-placeholder); }
.lp-field input:hover { border-color: var(--lp-border-hover); }
.lp-field input:focus {
    border-color: var(--lp-blue);
    outline: none;
    box-shadow: 0 0 0 3px var(--lp-blue-ring);
}
.lp-field input[aria-invalid="true"] { border-color: var(--lp-danger); }
.lp-field input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    background: var(--color-bg-soft);
}

.lp-forgot-link {
    color: var(--lp-blue);
    font-size: 12px;
    font-weight: var(--fw-semibold);
    text-decoration: none;
}
.lp-forgot-link:hover { text-decoration: underline; }

/* ─── Password ───────────────────────────── */
.lp-password-wrapper { position: relative; }
.lp-password-wrapper input { padding-right: 72px; }

.lp-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    padding: 6px 8px;
    background: transparent;
    color: var(--lp-blue);
    font: inherit;
    font-size: 12px;
    font-weight: var(--fw-bold);
    cursor: pointer;
}
.lp-password-toggle:focus-visible {
    outline: 2px solid var(--lp-blue);
    border-radius: 5px;
}

/* ─── Checkbox ───────────────────────────── */
.lp-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: var(--lp-text-helper);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.lp-checkbox input {
    width: 16px; height: 16px;
    margin: 0;
    accent-color: var(--lp-blue);
}

/* ─── Submit button ──────────────────────── */
.lp-submit-btn {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    border: 0;
    border-radius: 9px;
    background: var(--lp-blue);
    color: var(--lp-bg-white);
    font: inherit;
    font-size: 14px;
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease),
                transform 100ms var(--ease),
                box-shadow var(--t-fast) var(--ease);
}
.lp-submit-btn:hover:not(:disabled) {
    background: var(--lp-blue-hover);
    box-shadow: 0 5px 16px rgba(30, 95, 196, 0.18);
}
.lp-submit-btn:active:not(:disabled) { transform: translateY(1px); }
.lp-submit-btn:focus-visible {
    outline: 3px solid var(--lp-blue-ring);
    outline-offset: 2px;
}
.lp-submit-btn:disabled { cursor: not-allowed; opacity: 0.7; }

/* ─── States ─────────────────────────────── */
.lp-spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: lp-spin 700ms linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp-general-error {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.45;
}

.lp-field-error {
    color: var(--lp-danger);
    font-size: 12px;
    line-height: 1.4;
}

/* ─── Footer links ───────────────────────── */
.lp-signup {
    margin: 24px 0 0;
    color: var(--lp-text-muted);
    text-align: center;
    font-size: 13px;
}

.lp-signup a,
.lp-legal a {
    color: var(--lp-blue);
    font-weight: 650;
    text-decoration: none;
}
.lp-signup a:hover,
.lp-legal a:hover { text-decoration: underline; }

.lp-legal {
    max-width: 350px;
    margin: 18px auto 0;
    color: var(--lp-text-muted);
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1000px) {
    .lp-layout { grid-template-columns: 1fr; }
    .lp-branding { display: none; }
    .lp-form-panel { min-height: 100svh; padding: 32px 24px; }

    .lp-mobile-logo {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 32px;
        color: var(--lp-navy);
        font-size: 19px;
        font-weight: 750;
    }
    .lp-mobile-logo .lp-logo-mark {
        width: 36px; height: 36px;
        background: var(--lp-navy);
        color: var(--lp-bg-white);
        border-radius: 9px;
    }
}

@media (max-width: 480px) {
    .lp-form-panel { padding: 24px 18px; }
    .lp-header h2 { font-size: 28px; }
    .lp-header { margin-bottom: 24px; }
    .lp-branding-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-submit-btn,
    .lp-social-btn,
    .lp-field input { transition: none; }
    .lp-spinner { animation: none; }
}