/* ===== Login page: glass card, glow background, dark + light ===== */
.login {
    --lp-bg: #070713;
    --lp-glass: rgba(255, 255, 255, .07);
    --lp-line: rgba(255, 255, 255, .18);
    --lp-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
    --lp-inp: rgba(255, 255, 255, .07);
    --lp-inp-line: rgba(255, 255, 255, .18);
    --lp-inp-solid: #1b1a36;
    --lp-track: rgba(255, 255, 255, .09);
    --lp-pill: #ffffff;
    --lp-pill-text: #15152f;
    --lp-link: #c9bfff;
    --lp-ring: #b3a6ff;
    --lp-note: rgba(0, 0, 0, .3);
    --lp-o1: rgba(124, 92, 255, .62);
    --lp-o2: rgba(255, 77, 141, .42);
    --lp-o3: rgba(34, 211, 238, .34);
}

:root[data-theme=light] .login {
    --lp-bg: linear-gradient(135deg, #fde6f2 0%, #efeafb 48%, #e2dbfb 100%);
    --lp-glass: rgba(255, 255, 255, .55);
    --lp-line: rgba(255, 255, 255, .9);
    --lp-shadow: 0 24px 60px rgba(110, 80, 200, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
    --lp-inp: rgba(255, 255, 255, .7);
    --lp-inp-line: rgba(124, 92, 255, .28);
    --lp-inp-solid: #f3effd;
    --lp-track: rgba(30, 30, 80, .07);
    --lp-pill: #ffffff;
    --lp-pill-text: #15152f;
    --lp-link: #5b3df5;
    --lp-ring: #5b3df5;
    --lp-note: rgba(255, 255, 255, .65);
    --lp-o1: rgba(139, 92, 246, .5);
    --lp-o2: rgba(255, 122, 184, .6);
    --lp-o3: rgba(214, 111, 208, .5);
}

body.login {
    background: var(--lp-bg);
    min-height: 100vh;
}

body.login::before,
body.login::after {
    display: none;
}

/* glow orbs */
.lp-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.lp-orbs i {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: lpfloat 22s ease-in-out infinite alternate;
}

.lp-orbs .o1 {
    width: 560px;
    height: 560px;
    top: -160px;
    right: -120px;
    background: var(--lp-o1);
}

.lp-orbs .o2 {
    width: 500px;
    height: 500px;
    top: 30%;
    left: -160px;
    background: var(--lp-o2);
    animation-delay: -8s;
}

.lp-orbs .o3 {
    width: 520px;
    height: 520px;
    bottom: -220px;
    right: 16%;
    background: var(--lp-o3);
    animation-delay: -14s;
}

@keyframes lpfloat {
    to {
        transform: translate(50px, 36px) scale(1.1);
    }
}

/* layout */
.lp-wrap {
    min-height: 100vh;
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: 1.1fr minmax(0, 440px);
    gap: 72px;
    align-items: center;
}

.lp-hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 26px 0 14px;
}

.lp-hero h1 .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 460px;
}

.lp-features {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.lp-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
}

.lp-features .stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

/* theme toggle (top-right of the page) */
.lp-theme {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    background: var(--lp-glass);
    border: 1px solid var(--lp-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: .2s;
}

.lp-theme:hover {
    transform: translateY(-2px);
}

/* glass card */
.lp-card {
    padding: 32px;
    border-radius: 24px;
    background: var(--lp-glass);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.lp-card h2 {
    display: block;
    font-size: 1.55rem;
    margin: 0 0 4px;
}

.lp-sub {
    color: var(--muted);
    font-size: .95rem;
    margin: 0 0 22px;
}

/* plain tabs */
.lp-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
    background: var(--lp-track);
    margin-bottom: 8px;
}

.lp-tabs button {
    flex: 1;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.lp-tabs button.active {
    background: var(--lp-pill);
    color: var(--lp-pill-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

/* labels and fields */
.lp-card label {
    text-transform: none;
    letter-spacing: 0;
    font-size: .86rem;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 7px;
}

.field {
    position: relative;
}

.field .lead {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    display: grid;
    pointer-events: none;
    z-index: 1;
}

.field input {
    padding: 13px 14px 13px 44px;
    background: var(--lp-inp);
    border: 1px solid var(--lp-inp-line);
    border-radius: 14px;
    color: var(--text);
}

.field input::placeholder {
    color: var(--muted);
    opacity: .8;
}

.field input:focus {
    border-color: var(--lp-ring);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-ring) 30%, transparent);
}

/* browser autofill used to paint the fields bright blue-white */
.lp-card input:-webkit-autofill,
.lp-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    box-shadow: 0 0 0 1000px var(--lp-inp-solid) inset;
    transition: background-color 9999s ease-out;
}

.lp-forgot {
    text-align: right;
    margin: 10px 0 0;
}

.lp-forgot button {
    background: none;
    border: 0;
    padding: 4px 2px;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--lp-link);
    cursor: pointer;
    border-radius: 6px;
}

.lp-forgot button:hover {
    text-decoration: underline;
}

.lp-check {
    margin-top: 6px;
}

.lp-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

.lp-card .btn.full {
    margin-top: 20px;
    padding: 14px;
    font-size: 1rem;
}

.lp-note {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--lp-note);
    border: 1px solid var(--lp-line);
    font-size: .86rem;
    text-align: center;
    color: var(--text);
}

/* visible keyboard focus everywhere on this page */
.login a:focus-visible,
.login button:focus-visible,
.login input[type=checkbox]:focus-visible {
    outline: 2px solid var(--lp-ring);
    outline-offset: 2px;
}

/* small screens */
@media (max-width: 900px) {
    .lp-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 76px 18px 40px;
        max-width: 520px;
    }

    .lp-hero h1 {
        font-size: 2.1rem;
        margin: 18px 0 0;
    }

    .lp-hero p,
    .lp-features {
        display: none;
    }

    .lp-card {
        padding: 24px;
    }
}

/* ===== v2: glass like the mockup, corner logo ===== */
.login {
    --lp-glass: rgba(255, 255, 255, .06);
    --lp-line: rgba(255, 255, 255, .24);
    --lp-shadow: 0 24px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .38);
    --lp-inp: rgba(0, 0, 0, .28);
    --lp-inp-line: rgba(255, 255, 255, .2);
    --lp-inp-solid: #1b1a36;
    --lp-note: rgba(0, 0, 0, .35);
}

:root[data-theme=light] .login {
    --lp-glass: rgba(255, 255, 255, .3);
    --lp-line: rgba(255, 255, 255, .9);
    --lp-shadow: 0 24px 60px rgba(110, 80, 200, .2), inset 0 1px 0 rgba(255, 255, 255, 1);
    --lp-inp: rgba(255, 255, 255, .5);
    --lp-inp-line: rgba(124, 92, 255, .3);
    --lp-inp-solid: #f3effd;
    --lp-note: rgba(255, 255, 255, .55);
}

/* page-level glows are now just ambient; the real glass glow is behind the card */
.lp-orbs i {
    opacity: .55;
}

/* orbs directly behind the card (this is what makes it read as glass) */
.lp-stage {
    position: relative;
}

.lp-stage .so {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    z-index: 0;
    pointer-events: none;
}

.lp-stage .so1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -120px;
    background: var(--lp-o1);
}

/* purple, top-right */
.lp-stage .so2 {
    width: 240px;
    height: 240px;
    top: 80px;
    left: -130px;
    background: var(--lp-o2);
}

/* pink, left edge */
.lp-stage .so3 {
    width: 300px;
    height: 300px;
    bottom: -110px;
    left: -70px;
    background: var(--lp-o3);
}

/* cyan, bottom-left */
.lp-card {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
}

:root[data-theme=light] .login {
    --lp-o1: rgba(139, 92, 246, .7);
    --lp-o2: rgba(255, 110, 180, .7);
    --lp-o3: rgba(120, 140, 255, .55);
}

/* corners: logo far left, theme toggle far right, same height and top margin */
.lp-brand {
    position: fixed;
    top: 18px;
    left: 18px;
    height: 42px;
    display: flex;
    align-items: center;
    z-index: 5;
    margin: 0;
}

.lp-hero h1 {
    margin-top: 0;
}

.lp-theme {
    top: 18px;
    right: 18px;
}

@media (max-width: 900px) {
    .lp-wrap {
        padding-top: 84px;
    }

    .lp-stage .so1 {
        width: 200px;
        height: 200px;
        right: -60px;
    }

    .lp-stage .so2 {
        width: 160px;
        height: 160px;
        left: -70px;
    }

    .lp-stage .so3 {
        width: 200px;
        height: 200px;
        left: -40px;
    }
}

/* ===== top row: logo far left, pill switch far right, same line ===== */
.lp-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 78px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.lp-top>* {
    pointer-events: auto;
}

.lp-top .logo {
    margin: 0;
    height: 38px;
    align-items: center;
}

.lp-switch {
    position: relative;
    display: block;
    width: 70px;
    height: 38px;
    padding: 0;
    border-radius: 99px;
    cursor: pointer;
    background: var(--lp-glass);
    border: 1px solid var(--lp-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color .2s;
}

.lp-switch:hover {
    border-color: var(--lp-ring);
}

.lp-switch:focus-visible {
    outline: 2px solid var(--lp-ring);
    outline-offset: 3px;
}

.lp-s {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    display: grid;
}

.lp-sun {
    left: 10px;
}

.lp-moon {
    right: 10px;
}

.lp-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 4px 12px rgba(124, 92, 255, .45);
    transform: translateX(32px);
    transition: transform .3s cubic-bezier(.4, .1, .2, 1);
}

:root[data-theme=light] .lp-knob {
    transform: translateX(0);
}

@media (max-width: 900px) {
    .lp-top {
        padding: 0 14px;
    }
}