@charset "UTF-8";
/* ############################################################################
   QLYNIC · Founder Access  —  Login.css
   ----------------------------------------------------------------------------
   Page skin for Login.aspx. The Qlynic UI kit (qlynic-ui.css) is the element
   library — buttons (.qbtn*), fields (.q-field/.q-label/.q-input), tokens.
   This file adds only what the kit doesn't cover: the scene, the Plot loader,
   and page layout.

   COLOUR RULE: every colour below resolves to a qlynic-ui.css token, directly
   (var(--token)) or as color-mix(in srgb, var(--token) …). The only raw values
   are the neutral primitives #000 / #fff / transparent. The logo keeps its own
   four brand gradients (they live in the inline SVG, not here).

   LOAD ORDER:  qlynic-ui.css  →  Login.css   (this file overrides last)
   ############################################################################ */

:root {
    --grid: color-mix(in srgb, var(--accent) 6%, transparent); /* blueprint grid */
    --wire: color-mix(in srgb, var(--accent) 40%, transparent); /* Plot wireframe */
    --edge: color-mix(in srgb, var(--accent) 82%, #fff); /* Plot render edge */
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    touch-action: manipulation; /* kill double-tap zoom */
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- SCENE: calm aurora + faint blueprint grid + horizon line -------- */
.scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(1200px 720px at 50% -12%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 58%), radial-gradient(900px 560px at 88% 6%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 54%), linear-gradient(180deg, color-mix(in srgb, var(--bg-base) 55%, #000) 0%, var(--bg-base) 46%, color-mix(in srgb, var(--bg-base) 40%, #000) 100%);
}

.scene__grid {
    position: absolute;
    inset: 0;
    opacity: .55;
    background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px;
    -webkit-mask: radial-gradient(125% 92% at 50% 0%, #000 38%, transparent 78%);
    mask: radial-gradient(125% 92% at 50% 0%, #000 38%, transparent 78%);
}

.scene__horizon {
    position: absolute;
    left: 50%;
    bottom: 9vh;
    transform: translateX(-50%);
    width: min(1080px, 150vw);
    height: 1.5px;
    border-radius: 2px;
    background: var(--aurora-band);
    opacity: .5;
    box-shadow: 0 0 22px 2px color-mix(in srgb, var(--accent) 32%, transparent), 0 0 60px 8px color-mix(in srgb, var(--primary) 20%, transparent);
}

    .scene__horizon::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -9vh;
        height: 20vh;
        background: radial-gradient(60% 100% at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
    }

/* ------------------------------- STAGE ------------------------------------- */
.auth {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

/* ------------------------------ THE CARD ----------------------------------- */
.card {
    position: relative;
    width: min(432px, 100%);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-2xl);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-3) 82%, transparent), color-mix(in srgb, var(--surface-2) 88%, transparent));
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: var(--shadow-xl), var(--highlight-top);
    opacity: 0;
    transform: translateY(22px) scale(.99);
    animation: card-in .6s var(--ease-out) .05s forwards;
}

@keyframes card-in {
    to {
        opacity: 1;
        transform: none;
    }
}
/* aurora hairline along the top edge */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16%;
    right: 16%;
    height: 1px;
    background: var(--aurora-band);
    opacity: .55;
    pointer-events: none;
}

.card__body {
    padding: 30px 28px 24px;
}

/* Head: Plot logo + kicker + title + sub ------------------------------------ */
.card__logo {
    display: grid;
    place-items: center;
}

    .card__logo .plot {
        width: clamp(96px, 26vmin, 128px);
        height: clamp(96px, 26vmin, 128px);
    }

.kicker {
    text-align: center;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: var(--font-size-xxs);
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
}

.title {
    text-align: center;
    margin: 8px 0 0;
    font-size: var(--font-size-xxl);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-primary);
}

.sub {
    text-align: center;
    margin: 10px auto 22px;
    max-width: 33ch;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: var(--lh-base);
}

/* Field — kit .q-field/.q-label/.q-input, 16px to guarantee no focus-zoom */
#form1 .q-input {
    font-size: 16px;
}

.q-field {
    margin-bottom: 18px;
}

/* CTA — kit primary button, full width */
.card__cta .qbtn {
    width: 100%;
}

    .card__cta .qbtn:focus-visible {
        box-shadow: var(--ring);
    }

.note {
    margin-top: 14px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--font-size-xxs);
    color: var(--text-faint);
    letter-spacing: .02em;
    line-height: 1.6;
}

/* Status console — class names REQUIRED by code-behind SetStatus injection */
.status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: var(--surface-1);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    display: none;
}

    .status.is-show {
        display: block;
        animation: fade-up .34s var(--ease-out);
    }

.status--ok {
    border-color: color-mix(in srgb, var(--success) 34%, transparent);
    background: var(--success-subtle);
}

.status--err {
    border-color: color-mix(in srgb, var(--danger) 36%, transparent);
    background: var(--danger-subtle);
}

/* Footer — one compact dot-separated line (holds a single line on every phone) */
.foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    display: grid;
    gap: 8px;
    justify-items: center;
}

.foot__meta {
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--font-size-xxs);
    color: var(--text-muted);
    line-height: 1.7;
}

    .foot__meta i {
        color: var(--text-faint);
        font-style: normal;
        margin: 0 3px;
    }

.foot__copy {
    font-family: var(--font-mono);
    font-size: var(--font-size-xxs);
    color: var(--text-faint);
    letter-spacing: .08em;
}

/* Honeypot */
.hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* DEV quick sign-in — rendered ONLY when QuickLogin="true" AND request is local.
   Teal + dashed so it can never be mistaken for the real CTA. */
.devq {
    margin-top: 16px;
    padding: 12px 12px 13px;
    border-radius: var(--radius-md);
    border: 1px dashed color-mix(in srgb, var(--accent) 42%, transparent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.devq__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: var(--font-size-xxs);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
}

    .devq__tag::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 10px 1px var(--accent);
    }

.devq__btn {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--text-primary);
    font-family: var(--font);
    font-weight: 700;
    font-size: var(--font-size-base);
    letter-spacing: .01em;
    transition: background-color var(--timing) var(--ease), border-color var(--timing) var(--ease), transform var(--timing-fast) var(--ease);
}

    .devq__btn:hover {
        background: color-mix(in srgb, var(--accent) 26%, transparent);
        border-color: var(--accent);
    }

    .devq__btn:active {
        transform: translateY(1px);
    }

    .devq__btn:focus-visible {
        outline: none;
        box-shadow: var(--ring);
    }

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.shake {
    animation: shake .3s ease-in-out;
}

@keyframes shake {
    0%,100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-4px);
    }
}


/* ════════════════════════════════════════════════════════════════════════
   PLOT  ·  the render loader (logo on load + full-screen on submit)
   A dim wireframe resolves into full colour under a bright plot edge.
   Driven by --p (0→1). All tint from kit --accent.
   ════════════════════════════════════════════════════════════════════════ */
.plot {
    position: relative;
}

    .plot .q-logo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        overflow: visible;
    }

.q-logo--wire .q-pc {
    fill: none;
    stroke: var(--wire);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.plot__fill {
    clip-path: inset(0 calc((1 - var(--p,0)) * 100%) 0 0);
}

.plot__edge {
    position: absolute;
    top: -6%;
    height: 112%;
    width: 2px;
    left: calc(var(--p,0) * 100%);
    background: linear-gradient(180deg, transparent, var(--edge) 18%, var(--edge) 82%, transparent);
    box-shadow: 0 0 12px var(--accent);
}

    .plot__edge::before, .plot__edge::after {
        content: "";
        position: absolute;
        left: -3px;
        width: 8px;
        height: 8px;
        border: 1.5px solid var(--edge);
        border-radius: 50%;
        background: var(--bg-elevated);
    }

    .plot__edge::before {
        top: -4px;
    }

    .plot__edge::after {
        bottom: -4px;
    }

.plot.is-done .plot__edge {
    opacity: 0;
    transition: opacity .35s var(--ease) .1s;
}

/* Full-screen loader overlay */
.loader {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 6000);
    display: none;
    place-items: center;
    background: color-mix(in srgb, var(--bg-base) 82%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

    .loader.is-on {
        display: grid;
        animation: fade-in .22s var(--ease-out);
    }

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

.loader__box {
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
    padding: 28px;
    max-width: min(360px, 90vw);
}

    .loader__box .plot {
        width: 132px;
        height: 132px;
    }

.loader__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}

    .loader__status .g {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 10px var(--accent);
        animation: blink 1.3s steps(1) infinite;
    }

@keyframes blink {
    50% {
        opacity: .25;
    }
}

.loader__status .pct {
    color: var(--text-muted);
}

.loader__slow {
    display: none;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

.loader__reload {
    display: none;
}

.loader.is-slow .loader__status {
    color: var(--text-muted);
}

.loader.is-slow .loader__slow {
    display: block;
}

.loader.is-slow .loader__reload {
    display: inline-flex;
}

/* ------------------------------ RESPONSIVE --------------------------------- */
@media (max-width: 560px) {
    .card__body {
        padding: 26px 20px 20px;
    }
}

@media (max-height: 720px) {
    .auth {
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scene__horizon, .card, .loader, .plot__edge, .loader__status .g {
        animation: none !important;
    }

    .card {
        opacity: 1;
        transform: none;
    }

    .plot .q-logo--wire .q-pc {
        stroke-opacity: .5;
    }
}

/* ############################################################################
   END Login.css
   ############################################################################ */
