:root {
    --bg: #000000;
    --text: #e2e8f0;
    --muted: rgba(226, 232, 240, .75);
    --orange: #f38c18;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 5%, rgba(243, 140, 24, .32), rgba(0, 0, 0, 0) 40%),
        radial-gradient(circle at 90% 90%, rgba(243, 140, 24, .22), rgba(0, 0, 0, 0) 55%),
        radial-gradient(circle at 40% 120%, rgba(243, 140, 24, .2), rgba(0, 0, 0, 0) 60%),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    cursor: default;
}

a,
button,
[role="button"],
.btn-primary,
.btn-secondary {
    cursor: pointer;
}

/* Background grid & glow */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -5;
    background-image:
        linear-gradient(90deg, rgba(243, 140, 24, .06) 1px, rgba(0, 0, 0, 0) 1px),
        linear-gradient(0deg, rgba(243, 140, 24, .04) 1px, rgba(0, 0, 0, 0) 1px);
    background-size: 110px 110px;
}

.bg-grid-2 {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -4;
    opacity: .5;
    background-image:
        linear-gradient(90deg, rgba(243, 140, 24, .035) 1px, rgba(0, 0, 0, 0) 1px),
        linear-gradient(0deg, rgba(243, 140, 24, .02) 1px, rgba(0, 0, 0, 0) 1px);
    background-size: 32px 32px;
}

.neon-band {
    position: fixed;
    top: -12vh;
    left: -12vw;
    width: 70vw;
    height: 36vh;
    background: radial-gradient(circle at 10% 50%, rgba(243, 140, 24, .75), rgba(243, 140, 24, 0) 70%);
    filter: drop-shadow(0 0 35px rgba(243, 140, 24, .45));
    transform: rotate(5deg);
    pointer-events: none;
    z-index: -3;
    animation: orangeFloat 14s ease-in-out infinite alternate;
}

@keyframes orangeFloat {
    0% {
        transform: translateY(0) rotate(5deg);
        opacity: .95
    }

    100% {
        transform: translateY(35px) rotate(7deg);
        opacity: .6
    }
}

.neon-pill {
    position: fixed;
    bottom: -120px;
    right: -80px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(243, 140, 24, .5), rgba(0, 0, 0, 0));
    filter: blur(16px);
    opacity: .6;
    pointer-events: none;
    z-index: -2;
    animation: orangeFloat2 16s ease-in-out infinite alternate;
}

@keyframes orangeFloat2 {
    0% {
        transform: translateY(0);
        opacity: .7
    }

    100% {
        transform: translateY(-32px);
        opacity: .35
    }
}

/* Layout */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.4rem clamp(1.3rem, 3.5vw, 3.3rem) 3.4rem;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

/* Panel */
.panel {
    width: min(560px, 96vw);
    background:
        radial-gradient(circle at 14% 6%, rgba(243, 140, 24, .35), rgba(0, 0, 0, 0) 60%),
        rgba(0, 0, 0, .6);
    border-radius: 1.35rem;
    padding: 1.6rem 1.25rem 1.25rem;
    box-shadow: 0 25px 55px rgba(0, 0, 0, .4);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: .2rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .7);
}

.brand-logo img {
    width: 30px;
    height: auto;
    display: block;
}

.brand span {
    font-size: .85rem;
    color: rgba(226, 232, 240, .7);
}

.title {
    margin: .25rem 0 1rem;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    letter-spacing: -.01em;
    background: linear-gradient(90deg, #ffb96a 0%, #ffffff 22%, #f38c18 55%, #ffb96a 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/* Forms */
form {
    display: grid;
    gap: .85rem;
}

label {
    font-size: .9rem;
    color: var(--muted);
    display: block;
}

.input {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #101010;
    color: #fff;
    border-radius: .85rem;
    padding: .85rem .95rem;
    font-size: 1rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.input:focus {
    border-color: rgba(243, 140, 24, .45);
    box-shadow: 0 0 0 3px rgba(243, 140, 24, .15);
    background: #0f0f0f;
}

.input-row {
    position: relative;
}

/* Eye toggle (shared) */
.toggle-eye {
    position: absolute;
    right: 8px;
    top: 65%;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: rgba(226, 232, 240, .85);
}

.toggle-eye:hover {
    background: rgba(255, 255, 255, .06);
}

.toggle-eye:focus-visible {
    outline: 2px solid rgba(243, 140, 24, .55);
    outline-offset: 2px;
    border-radius: 8px;
}

.toggle-eye svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Buttons */
.actions {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: .2rem;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    border: 0;
    border-radius: 1rem;
    padding: .8rem 1.15rem .7rem;
    font-weight: 800;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .15s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: rgba(243, 140, 24, .85);
}

.btn-secondary {
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border: 0;
    border-radius: 1rem;
    padding: .8rem 1.15rem .7rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary[disabled] {
    opacity: .6;
    pointer-events: none;
}

/* Utility links */
.underlinks {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .4rem;
    flex-wrap: wrap;
}

.underlinks a {
    color: rgba(226, 232, 240, .9);
    text-decoration: none;
    font-size: .9rem;
}

.underlinks a:hover {
    color: #fff;
}

/* Log area + flash */
.log {
    --flash: rgba(243, 140, 24, .35);
    --flash-bg: rgba(243, 140, 24, .12);
    margin-top: .9rem;
    background: rgba(0, 0, 0, .35);
    border-radius: .9rem;
    padding: .65rem .75rem .55rem;
    min-height: 42px;
    font-size: .9rem;
    color: rgba(226, 232, 240, .9);
}

.log.is-success {
    --flash: rgba(34, 197, 94, .35);
    --flash-bg: rgba(34, 197, 94, .12);
}

.log.is-error {
    --flash: rgba(239, 68, 68, .35);
    --flash-bg: rgba(239, 68, 68, .12);
}

.log.is-info {
    --flash: rgba(243, 140, 24, .35);
    --flash-bg: rgba(243, 140, 24, .12);
}

.log.flash {
    animation: logPulse 550ms ease-out;
}

@keyframes logPulse {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: scale(1);
        background: rgba(0, 0, 0, .35);
    }

    30% {
        box-shadow: 0 0 22px var(--flash);
        transform: scale(1.01);
        background: var(--flash-bg);
    }

    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: scale(1);
        background: rgba(0, 0, 0, .35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .log.flash {
        animation: none;
    }
}

/* Spinner */
.spinner {
    --s: 18px;
    width: var(--s);
    height: var(--s);
    border: 2px solid rgba(255, 255, 255, .2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile */
@media (max-width:1180px) {
    .wrap {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    /*
    .panel {
        border-radius: 0 !important;
    }
    */
}