﻿/* ===== Prime UI – Dark Neon Mesh + Glass Inputs (Polished Full) ===== */
:root {
    --bg1: #0b0f1a;
    --fg: #eaeef8;
    --muted: #a9b0c3;
    --brand: #ff7a18;
    --brand2: #af2fff;
    --card: #0d102088;
    --stroke: #ffffff22;
    --input: #ffffff22;
    --input-focus: #ffffff44;
    --radius: 22px;
    /* extras */
    --glow-a: #ff7a18;
    --glow-b: #7a00ff;
    --glow-c: #00c2ff;
    --noise: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter>\
<rect width='100%' height='100%' filter='url(%23n)' opacity='0.04'/></svg>");
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

/* ---------- Background: dynamic neon mesh (screenshot look) ---------- */
body {
    margin: 0;
    color: var(--fg);
    background: radial-gradient(1200px 800px at 50% 50%, #0e0b18 0 35%, #090b12 60%, #07080f 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    font: 14.5px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
    /* giant color lobes (purple/pink top-left, orange/yellow bottom-right) */
    body::before,
    body::after {
        content: "";
        position: fixed;
        inset: -15vh -12vw;
        z-index: -4;
        pointer-events: none;
        filter: blur(26px) saturate(120%);
        opacity: .9;
    }

    body::before {
        background: radial-gradient(1350px 680px at 16% 12%, rgba(171,0,255,.85) 0 38%, transparent 53%), radial-gradient(1200px 560px at 64% 16%, rgba(255,64,180,.65) 0 34%, transparent 55%);
        animation: meshFloatA 26s ease-in-out infinite alternate;
    }

    body::after {
        background: radial-gradient(1400px 760px at 88% 86%, rgba(255,128,0,.78) 0 36%, transparent 56%), radial-gradient(1200px 460px at 80% 88%, rgba(255,210,80,.55) 0 32%, transparent 57%);
        animation: meshFloatB 28s ease-in-out infinite alternate-reverse;
    }

/* page layer: subtle conic sweeps + noise */
.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px 12px;
    position: relative;
    isolation: isolate;
}

    .page::before {
        content: "";
        position: fixed;
        inset: -12vh -12vw;
        z-index: -3;
        pointer-events: none;
        background: conic-gradient(from 200deg at 20% 18%, #7a00ff33, #ff4ec833, #7a00ff33 60%, transparent 70%), conic-gradient(from 30deg at 86% 82%, #ff8a1e2e, #ffd15a2e 40%, transparent 65%);
        mix-blend-mode: screen;
        filter: blur(30px) saturate(130%);
        animation: sweep 32s linear infinite;
    }

    .page::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        background: var(--noise), radial-gradient(1200px 300px at 12% 30%, #ff7a18aa 0 40%, transparent 45%), radial-gradient(1200px 300px at 88% 70%, #af2fffaa 0 40%, transparent 45%);
        mix-blend-mode: soft-light;
        opacity: .35;
        animation: flicker 10s ease-in-out infinite alternate;
    }

/* optional waves (kept for compatibility) */
.waves:before, .waves:after {
    content: "";
    position: fixed;
    inset: -20vh -10vw auto -10vw;
    height: 60vh;
    background: radial-gradient(1200px 220px at 10% 30%, #ff7a18aa 0 40%, transparent 45%), radial-gradient(1200px 220px at 90% 70%, #af2fffaa 0 40%, transparent 45%);
    filter: blur(24px) saturate(120%);
    opacity: .22;
    animation: drift 24s linear infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.waves:after {
    inset: auto -10vw -20vh -10vw;
    animation-duration: 30s;
}

/* ultra-thin grid lines (depth) */
@media (min-width:768px) {
    .bg-lines {
        position: fixed;
        inset: -10vh -10vw;
        z-index: -1;
        pointer-events: none;
        background: repeating-linear-gradient( 90deg, #ffffff10 0 1px, transparent 1px 60px), repeating-linear-gradient( 0deg, #ffffff08 0 1px, transparent 1px 60px);
        mask-image: radial-gradient(80% 60% at 50% 50%, #000 0 60%, transparent 80%);
        animation: linesDrift 40s linear infinite;
        filter: blur(.2px);
    }
}
/* twinkle particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(2px 2px at 10% 20%, #ffffffbb 0 60%, transparent 70%), radial-gradient(2px 2px at 30% 80%, #ffffff99 0 60%, transparent 70%), radial-gradient(2px 2px at 60% 30%, #ffffffbb 0 60%, transparent 70%), radial-gradient(2px 2px at 80% 70%, #ffffff99 0 60%, transparent 70%);
    animation: twinkle 9s ease-in-out infinite;
    mix-blend-mode: overlay;
    opacity: .25;
}

/* ---------- Main shell ---------- */
.login-shell {
    width: min(1140px, calc(100% - 40px));
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 #fff2, 0 0 0 1px #ffffff22 inset;
    backdrop-filter: blur(20px) saturate(130%);
    position: relative;
    z-index: 1;
}

.login-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: clamp(560px, 70vh, 760px);
}

@media (max-width:992px) {
    .login-split {
        grid-template-columns: 1fr;
    }

    .divider {
        display: none;
    }
}

/* left brand pane */
.brand-pane {
    padding: clamp(24px, 4.2vw, 46px);
    background: linear-gradient(180deg, #ffffff0a, transparent);
    border-right: 1px solid var(--stroke);
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* premium logo capsule */
.brand-logo {
    --size: 124px;
    width: var(--size);
    height: var(--size);
    border-radius: 24px;
    margin-bottom: 18px;
    position: relative;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1e1828, #0f0b17);
    border: 1px solid #ffffff22;
    box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px #ffffff10;
    overflow: hidden;
}

    .brand-logo::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 24px;
        padding: 1px;
        background: linear-gradient(120deg, var(--brand), var(--brand2), var(--glow-c));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: .85;
        pointer-events: none;
    }

    .brand-logo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(180px 120px at 35% 30%, #ffffff12 0 50%, transparent 60%);
        filter: blur(2px);
    }

    .brand-logo img {
        width: 66%;
        height: 66%;
        object-fit: contain;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)) saturate(1.06);
        opacity: .97;
    }

    .brand-logo .mono {
        width: 66%;
        height: 66%;
        display: grid;
        place-items: center;
        font-size: 36px;
        font-weight: 900;
        letter-spacing: .5px;
        color: #ffe7c2;
        background: linear-gradient(145deg,#2a2236,#17121f);
        border: 1px solid #ffffff11;
        border-radius: 18px;
        box-shadow: inset 0 0 0 1px #ffffff0f;
    }

.brand-title {
    font-size: clamp(26px, 2.2vw, 34px);
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 8px;
}

.brand-copy {
    color: var(--muted);
    line-height: 1.6;
}

.hashtag {
    color: #ffce7a;
    margin-top: 26px;
    font-weight: 600;
}

/* center divider with neon glow */
.divider {
    position: absolute;
    left: 56.52%;
    top: 30px;
    bottom: 30px;
    width: 1px;
    background: linear-gradient(#ffffff00,#ffffff66,#ffffff00);
    box-shadow: 0 0 22px #ffffff33;
}

/* right form pane */
.form-pane {
    padding: clamp(24px, 4.2vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.finger-wrap {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(90px 90px at 30% 30%, #ffffff10 0 60%, transparent 65%), linear-gradient(135deg, #ffffff14, #ffffff08);
    border: 1px solid var(--stroke);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 32px #0007, inset 0 0 0 1px #ffffff14;
    margin-bottom: 10px;
}

    .finger-wrap svg {
        width: 72%;
        opacity: .9;
    }

.form-card {
    width: 100%;
    max-width: 460px;
}

.form-label {
    color: #e8edff;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: .2px;
}

/* inputs */
.input-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-with-icon {
    position: relative;
}

    .input-with-icon .icon {
        position: absolute;
        left: 12px;
        top: 50%;
        translate: 0 -50%;
        width: 22px;
        height: 22px;
        color: #eaeef8;
        opacity: .9;
        pointer-events: none;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
    }

.glass-input {
    width: 100%;
    background: linear-gradient(180deg, #ffffff12, #ffffff0a);
    border: 1px solid var(--stroke);
    color: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
    transition: border .2s, box-shadow .25s, background .2s, transform .06s;
    box-shadow: 0 12px 28px #0006, inset 0 0 0 1px #ffffff0f;
}

.input-with-icon .glass-input {
    padding-left: 44px;
}

.glass-input::placeholder {
    color: #cad1e6cc;
}

.glass-input:hover {
    background: linear-gradient(180deg, #ffffff16, #ffffff0d);
}

.glass-input:focus {
    border-color: #ffffff66;
    background: linear-gradient(180deg, #ffffff18, #ffffff12);
    box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 0 1px #ffffff33 inset, 0 18px 40px #0007;
    transform: translateY(-1px);
}

/* select */
select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-image: linear-gradient(transparent,transparent), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center, right 16px center;
    background-size: 1px 60%, 12px 8px;
}

    select.glass-input option {
        color: #000;
        background: #fff;
    }

/* buttons */
.btn-glow {
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    background-image: linear-gradient(90deg, var(--brand), var(--brand2));
    color: #0e0b14;
    box-shadow: 0 10px 30px #0009, 0 0 0 1px #ffffff20 inset;
    transition: transform .08s ease, filter .2s ease;
}

    .btn-glow:hover {
        filter: brightness(1.07);
        transform: translateY(-1px);
    }

.btn-ghost {
    background: #ffffff12;
    color: #fff;
    border: 1px solid #ffffff33;
}

    .btn-ghost:hover {
        background: #ffffff18;
    }

/* typography */
.text-muted-2 {
    color: var(--muted);
}

.foot {
    font-size: 12px;
    letter-spacing: .4px;
    color: #ffb86b;
    margin: 18px 0 -6px;
    text-align: center;
}

/* ---------- Animations ---------- */
@keyframes drift {
    from {
        transform: translateY(-1.5vh) scale(1)
    }

    to {
        transform: translateY(1.5vh) scale(1.02)
    }
}

@keyframes meshFloatA {
    from {
        transform: translate(-1.2vw,-1.2vh) scale(1) rotate(-.2deg)
    }

    to {
        transform: translate(1.2vw,1.2vh) scale(1.03) rotate(.2deg)
    }
}

@keyframes meshFloatB {
    from {
        transform: translate(1.4vw,1.2vh) scale(1) rotate(.2deg)
    }

    to {
        transform: translate(-1.0vw,-1.0vh) scale(1.02) rotate(-.2deg)
    }
}

@keyframes sweep {
    from {
        transform: translateX(-2%) rotate(-1deg)
    }

    to {
        transform: translateX(2%) rotate(1deg)
    }
}

@keyframes flicker {
    0%,100% {
        opacity: .33
    }

    45% {
        opacity: .40
    }

    70% {
        opacity: .30
    }
}

@keyframes linesDrift {
    from {
        transform: translateY(-1%)
    }

    to {
        transform: translateY(1%)
    }
}

@keyframes twinkle {
    0%,100% {
        opacity: .18;
        transform: translateY(-1%)
    }

    50% {
        opacity: .32;
        transform: translateY(1%)
    }
}
