﻿/* ==========================
   login-dark.css (full file)
   ========================== */

:root {
    --w-closed: 220px;
    --w-open: 520px;
    --radius: 18px;
    --frame-thick: 0px;
    --frame-thin: 0px;
    --svg-pad: 2px;
    --runner-width: 3px;
    --runner-dash: 80;
    --runner-speed: 2200ms;
}

/* page bg + default type */
html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    color: #e8ecf3;
    background: radial-gradient(1200px 700px at 10% -10%, #172142 0%, transparent 55%), radial-gradient(1200px 700px at 110% 0%, #0e1e33 0%, transparent 55%), linear-gradient(180deg, #0a0f1a 0%, #070c15 100%);
}

/* (optional) theme button — safe if not used */
.theme-btn {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #2a3552;
    background: #111a2b;
    color: #e8ecf3;
    font-weight: 800;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
    transition: transform .06s ease, background .2s ease, border-color .2s ease;
}

    .theme-btn:hover {
        background: #15203a;
        border-color: #36456a
    }

    .theme-btn:active {
        transform: translateY(1px)
    }

.frame {
    width: var(--w-closed);
    transition: width .45s cubic-bezier(.2,.7,.2,1);
}

    .frame.open {
        width: min(92vw, var(--w-open));
    }

/* Silver/grey outer block with bevel; symmetric inner look (no outer glow) */
.login-block {
    position: relative;
    border-radius: calc(var(--radius) + 10px);
    border: solid #000 var(--frame-thick);
    transition: border-width .45s ease, transform .35s ease;
    background: linear-gradient(180deg, #b8bec7 0%, #949daa 100%);
    padding: 16px;
    /* removed outer glow: only subtle inset bevels */
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.75), inset 0 18px 36px rgba(255,255,255,.20), inset 0 -18px 36px rgba(0,0,0,.85), inset 34px 0 48px rgba(0,0,0,.62), inset -34px 0 48px rgba(0,0,0,.62);
}

.frame.open .login-block {
    border-width: var(--frame-thin);
    transform: scale(1.02);
}

/* Inner panel (dark) – softened shadows, no outer glow */
.panel {
    position: relative;
    background: linear-gradient(180deg, #0e1424 0%, #0b101c 100%);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
    box-shadow: inset 0 -6px 16px rgba(0,0,0,.45), inset 0 6px 12px rgba(255,255,255,.05);
    z-index: 2;
}

    .panel::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%), linear-gradient(0deg, rgba(0,0,0,.22), rgba(0,0,0,0) 55%);
        mix-blend-mode: overlay;
    }

/* Welcome only when expanded */
.welcome {
    margin: 6px 2px 14px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .3px;
    text-align: center;
    display: none;
}

.frame.open .welcome {
    display: block;
}

/* Collapsed call-to-action (Login button) */
.cta-wrap {
    display: grid;
    place-items: center;
    padding: 8px 0 2px;
}

.frame.open .cta-wrap {
    display: none;
}

/* Animated blue gradient sweep at ~40deg for CTA; no outer shadow */
@keyframes ctaSweep {
    0% {
        background-position: 0% 50%
    }

    100% {
        background-position: 200% 50%
    }
}

.cta {
    appearance: none;
    background: linear-gradient(40deg,#3fa1ff 0%,#66b8ff 20%,#99d0ff 40%,#3fa1ff 60%,#66b8ff 80%,#99d0ff 100%);
    background-size: 220% 220%;
    animation: ctaSweep 2.2s linear infinite;
    color: white;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    padding: 12px 16px;
    cursor: pointer;
    transition: transform .06s ease, filter .2s ease;

    box-shadow: 0 0 42px rgba(0, 0, 0, 1), 0 0 16px rgba(0, 0, 0, 1) !important;
}

    .cta:hover {
        filter: brightness(1.06)
    }

    .cta:active {
        transform: translateY(1px)
    }

/* Collapser for form */
.collapser {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .45s ease, opacity .35s ease, transform .35s ease;
}

.frame.open .collapser {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
}

form {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

label {
    font-size: 13px;
    color: #97a1b3;
    margin: 0 2px 4px;
    display: block;
}

/* Inputs (dark) */
.input {
    width: 100%;
    background: #0c1220;
    color: #e8ecf3;
    border: 1px solid #2a3552;
    border-radius: 12px;
    padding: 12px 13px;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

    .input:focus {
        border-color: #7c5cff;
        box-shadow: 0 0 0 4px rgba(124,92,255,.22);
        background: #0e162a;
    }

/* remember/forgot row */
.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    cursor: pointer;
    color: #c7cfde;
    font-weight: 600;
}

    .remember input {
        width: 18px;
        height: 18px;
        accent-color: #6a8cff;
        cursor: pointer;
    }

.forgot {
    color: #8eb6ff;
    text-decoration: none;
    font-weight: 700;
}

    .forgot:hover {
        text-decoration: underline
    }

/* Actions */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.btn {
    flex: 1;
    appearance: none;
    border-radius: 12px;
    font-weight: 800;
    padding: 12px 14px;
    cursor: pointer;
    border: 1px solid #2a3552;
    background: #111a2b;
    color: #e8ecf3;
    transition: transform .06s ease, background .2s ease, border-color .2s ease;
}

    .btn:hover {
        background: #15203a;
        border-color: #36456a
    }

    .btn:active {
        transform: translateY(1px)
    }

    /* Primary sign-in button: NO outer glow */
    .btn.primary {
        border: 0;
        color: white;
        background: linear-gradient(180deg, #8a75ff, #6a4eff);
        box-shadow: none !important; /* <-- removed */
    }

.fineprint {
    margin-top: 6px;
    text-align: center;
    color: #97a1b3;
    font-size: 12px;
}

/* ===== Blue Glow Runner (SVG) ===== */
.runner {
    position: absolute;
    inset: calc(var(--svg-pad) * -1);
    pointer-events: none;
    z-index: 3;
    border-radius: calc(var(--radius) + 10px + var(--svg-pad));
}

    .runner rect {
        fill: none;
        vector-effect: non-scaling-stroke;
        rx: calc(var(--radius) + 10px);
    }

    .runner .track {
        stroke: rgba(0,0,0,.65);
        stroke-width: calc(var(--runner-width) + 1px);
    }

    .runner .light {
        stroke: #5ab3ff;
        stroke-width: var(--runner-width);
        filter: url(#glow);
        stroke-dasharray: var(--runner-dash) calc(1000 - var(--runner-dash));
        animation: dashOrbit var(--runner-speed) linear infinite;
    }

@keyframes dashOrbit {
    from {
        stroke-dashoffset: 0
    }

    to {
        stroke-dashoffset: -1000
    }
}

.password-field .eye-wrap {
    position: relative;
}

    .password-field .eye-wrap .input {
        padding-right: 44px;
    }

.eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

    .eye-btn svg {
        opacity: .8;
    }

    .eye-btn:active {
        transform: translateY(-50%) scale(.98);
    }
