﻿
:root {
    --bg:#060b14;
    --bg-card:#0d1628;
    --bg-inp:#111d35;
    --border:#1a2d4a;
    --accent:#00e5a0;
    --accent2:#00c4ff;
    --a-glow:rgba(0,229,160,.22);
    --a-dim:rgba(0,229,160,.10);
    --red:#ff4d6a;
    --r-dim:rgba(255,77,106,.14);
    --g-dim:rgba(0,229,160,.13);
    --bright:#fff;
    --muted:#5a7490;
    --main:#c0d4e8;
    --fd:'Orbitron',monospace;
    --fm:'JetBrains Mono',monospace;
    --fb:'Syne',sans-serif;
    --r-sm:10px;
    --r-lg:20px;
    --app-w:480px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background: #020406;
    color: var(--main);
    font-family: var(--fb);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

#shell {
    width: 100%;
    max-width: var(--app-w);
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(ellipse 80% 50% at 60% -10%,rgba(0,229,160,.06) 0%,transparent 60%), radial-gradient(ellipse 60% 40% at 10% 100%,rgba(0,196,255,.04) 0%,transparent 55%);
    box-shadow: 0 0 80px rgba(0,0,0,.9);
}
/* CENTER wrapper fills remaining height */
.center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 22px 36px;
}
/* LOGO SECTION */
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

    .login-logo img {
        height: 64px;
        width: auto;
        object-fit: contain;
        margin-bottom: 10px;
    }
/* fallback text if image not found */
.login-logo-text {
    font-family: var(--fd);
    font-size: 18px;
    font-weight: 900;
    color: var(--bright);
    letter-spacing: 3px;
}

    .login-logo-text span {
        color: var(--accent);
    }

.login-logo-sub {
    font-family: var(--fm);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
}
/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--g-dim);
    border: 1px solid rgba(0,229,160,.25);
    border-radius: 20px;
    padding: 4px 14px;
    font-family: var(--fm);
    font-size: 10px;
    color: var(--accent);
    margin-bottom: 16px;
    align-self: flex-start;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent);
    animation: pulse 1.5s ease infinite;
}
/* TITLES */
.pg-title {
    font-family: var(--fd);
    font-size: 22px;
    font-weight: 900;
    color: var(--bright);
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 0 30px rgba(0,229,160,.15);
}

    .pg-title span {
        color: var(--accent);
    }

.pg-sub {
    font-family: var(--fm);
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 22px;
}
/* CARD */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,transparent,var(--accent),transparent);
        opacity: .55;
    }

    .card::after {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 170px;
        height: 170px;
        background: radial-gradient(circle,rgba(0,229,160,.055) 0%,transparent 70%);
        pointer-events: none;
    }
/* LABEL */
.lbl {
    font-family: var(--fd);
    font-size: 9px;
    font-weight: 700;
    color: var(--bright);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .lbl svg {
        width: 11px;
        height: 11px;
        color: var(--accent);
    }
/* INPUT GROUP */
.ig {
    margin-bottom: 18px;
}

.iw {
    position: relative;
}

.inp {
    width: 100%;
    background: var(--bg-inp);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 13px 44px 13px 42px;
    font-family: var(--fm);
    font-size: 13px;
    color: var(--bright);
    outline: none;
    transition: all .2s;
}

    .inp::placeholder {
        color: var(--muted);
    }

    .inp:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0,229,160,.09);
        background: rgba(13,22,40,.9);
    }

    .inp.err {
        border-color: var(--red)!important;
        box-shadow: 0 0 0 3px var(--r-dim)!important;
    }

.ico-l {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
    transition: color .2s;
}

.iw:focus-within .ico-l {
    color: var(--accent);
}

.ico-r {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 2px;
    transition: color .2s;
    display: flex;
}

    .ico-r:hover {
        color: var(--accent);
    }

    .ico-r svg {
        width: 15px;
        height: 15px;
    }

.emsg {
    font-family: var(--fm);
    font-size: 10px;
    color: var(--red);
    margin-top: 5px;
    display: none;
}

    .emsg.show {
        display: block;
    }
/* ROW */
.cb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.cb-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cb {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg-inp);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all .2s;
    position: relative;
    flex-shrink: 0;
}

    .cb:checked {
        background: var(--accent);
        border-color: var(--accent);
    }

        .cb:checked::after {
            content: '✓';
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: var(--bg);
            font-weight: 700;
        }

.cb-text {
    font-family: var(--fm);
    font-size: 11px;
    color: var(--muted);
}

.flink {
    font-family: var(--fm);
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
}

    .flink:hover {
        color: #00ffb3;
    }
/* BTN */
.btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--r-sm);
    padding: 14px;
    font-family: var(--fd);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 0 20px var(--a-glow);
}

    .btn:hover {
        background: #00ffb3;
        box-shadow: 0 0 32px rgba(0,229,160,.5);
        transform: translateY(-1px);
    }
/* divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.div-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.div-txt {
    font-family: var(--fm);
    font-size: 10px;
    color: var(--muted);
}

.reg-row {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

    .reg-row a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 600;
    }

        .reg-row a:hover {
            color: #00ffb3;
        }
/* SUCCESS OVERLAY */
.sov {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6,11,20,.96);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

    .sov.show {
        display: flex;
        animation: fadeUp .3s ease both;
    }

.sov-ico {
    width: 70px;
    height: 70px;
    background: var(--g-dim);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 24px var(--a-glow);
}

.sov-title {
    font-family: var(--fd);
    font-size: 18px;
    font-weight: 700;
    color: var(--bright);
}

.sov-sub {
    font-family: var(--fm);
    font-size: 12px;
    color: var(--muted);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.75);
    }
}

@media(max-width:480px) {
    body;

{
    background: var(--bg);
}

#shell {
    box-shadow: none;
}
}
