﻿/* =====================================================
   LAYOUT 2 — HERO BACKGROUND GLASSMORPHISM
   Aesthetic: Immersive night pit atmosphere
   Font: Oswald (display) + DM Sans (body)
   Palette: Pitch coal / Warm amber / Deep navy
===================================================== */

:root {
    --amber: #f5c518;
    --amber2: #e8a010;
    --amber3: #c47808;
    --success: #34d399;
    --danger: #f87171;
    --white: #f0f5fa;
    /* Glass card - dark */
    --glass-bg: rgba(8,12,20,.75);
    --glass-border: rgba(255,255,255,.1);
    --glass-border2: rgba(255,255,255,.16);
    --text-hi: #f0f5fa;
    --text-md: #98b0c4;
    --text-lo: #526070;
    --input-bg: rgba(255,255,255,.055);
    --input-bdr: rgba(255,255,255,.11);
    --focus-ring: rgba(245,197,24,.16);
    --shadow-card: 0 32px 100px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
    --btn-shadow: 0 6px 28px rgba(245,197,24,.4);
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
}

body {
    overflow: hidden;
}

@media (max-width: 640px) {
    body {
        overflow: auto;
    }
}

/* ── STAGE ── */
.stage {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ── BACKGROUND LAYER ── */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #06090f;
    overflow: hidden;
}

    .bg-layer::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 80% 65% at 30% 72%, rgba(60,36,8,.85) 0%, transparent 58%), radial-gradient(ellipse 55% 45% at 85% 15%, rgba(10,28,55,.7) 0%, transparent 55%), radial-gradient(ellipse 40% 40% at 62% 40%, rgba(245,197,24,.05) 0%, transparent 60%);
        animation: bgPulse 16s ease-in-out infinite alternate;
    }

@keyframes bgPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: .9;
        transform: scale(1.02);
    }
}

/* Hero SVG scene (pinned bottom) */
.hero-scene {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

    .hero-scene svg {
        width: 100%;
        display: block;
    }

/* Ground fog */
.ground-fog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28%;
    z-index: 2;
    background: linear-gradient(0deg, rgba(40,24,6,.55) 0%, transparent 100%);
    pointer-events: none;
}

/* Top vignette */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 3;
    background: radial-gradient(ellipse 100% 100% at 50% -5%, rgba(0,0,0,.45) 0%, transparent 55%);
    pointer-events: none;
}

/* ── PARTICLES ── */
.particles {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.p {
    position: absolute;
    border-radius: 50%;
    background: rgba(245,197,24,.55);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: .4;
    }

    100% {
        transform: translateY(-105vh) translateX(30px) scale(.3);
        opacity: 0;
    }
}

/* ── GLASS CARD ── */
.glass-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 430px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 40px 36px;
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    box-shadow: var(--shadow-card);
    animation: cardIn .65s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: scale(.94) translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
/* Top highlight border */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,197,24,.35), transparent);
    border-radius: 1px;
}
/* Bottom amber glow */
.glass-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,197,24,.2), transparent);
}

/* ── BRAND HEADER ── */
.card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-ico {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #f5c518, #c47808);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px rgba(245,197,24,.42), 0 4px 16px rgba(0,0,0,.4);
    flex-shrink: 0;
    animation: iconGlow 3.5s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 0 32px rgba(245,197,24,.42), 0 4px 16px rgba(0,0,0,.4);
    }

    50% {
        box-shadow: 0 0 52px rgba(245,197,24,.62), 0 4px 16px rgba(0,0,0,.4);
    }
}

.brand-ico svg {
    width: 24px;
    height: 24px;
    color: #0a0c10;
}

.brand-name {
    font-family: 'Oswald', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--text-hi);
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Status pill */
.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(52,211,153,.1);
    border: 1px solid rgba(52,211,153,.2);
    border-radius: 8px;
    margin-bottom: 22px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.status-txt {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--success);
    letter-spacing: .04em;
}

.status-meta {
    font-size: 11px;
    color: var(--text-lo);
    margin-left: auto;
}

/* Headings */
.card-h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-hi);
    line-height: 1.15;
    letter-spacing: -.4px;
    margin-bottom: 7px;
}

    .card-h1 em {
        color: var(--amber);
        font-style: normal;
    }

.card-desc {
    font-size: 13.5px;
    color: var(--text-lo);
    margin-bottom: 26px;
    line-height: 1.55;
}

/* Fields */
.field + .field {
    margin-top: 14px;
}

.f-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-md);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

    .f-label a {
        color: var(--amber);
        text-decoration: none;
        font-weight: 600;
        font-size: 11px;
        opacity: .8;
        transition: opacity .15s;
        text-transform: none;
        letter-spacing: 0;
    }

        .f-label a:hover {
            opacity: 1;
        }

.f-wrap {
    position: relative;
}

.f-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lo);
    pointer-events: none;
    display: flex;
}

    .f-icon svg {
        width: 16px;
        height: 16px;
    }

.fi {
    width: 100%;
    height: 40px;
    padding: 0 44px 0 44px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-bdr);
    border-radius: 12px;
    color: var(--text-hi);
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

    .fi::placeholder {
        color: var(--text-lo);
    }

    .fi:focus {
        border-color: var(--amber);
        background: rgba(245,197,24,.04);
        box-shadow: 0 0 0 3.5px var(--focus-ring);
    }

    .fi.invalid {
        border-color: var(--danger);
        box-shadow: 0 0 0 3px rgba(248,113,113,.12);
    }

select.fi {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23526070' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

    select.fi option {
        background: #111a28;
        color: #f0f5fa;
    }

.pw-btn {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-lo);
    display: flex;
    padding: 3px;
    transition: color .15s;
}

    .pw-btn:hover {
        color: var(--amber);
    }

    .pw-btn svg {
        width: 16px;
        height: 16px;
    }

.err {
    font-size: 11.5px;
    color: var(--danger);
    margin-top: 5px;
    display: none;
    animation: shake .3s ease;
}

    .err.show {
        display: block;
    }

@keyframes shake {
    0%,100% {
        transform: none
    }

    25% {
        transform: translateX(-4px)
    }

    75% {
        transform: translateX(4px)
    }
}

/* Separator */
.sep {
    height: 1px;
    background: var(--glass-border);
    margin: 20px 0;
}

/* Buttons */
.btn-login {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(110deg, #f5c518 0%, #d47008 100%);
    color: #0a0c10;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .22s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--btn-shadow);
}

    .btn-login::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 50%);
        border-radius: 13px;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 40px rgba(245,197,24,.5);
    }

    .btn-login:active {
        transform: none;
    }

    .btn-login.loading {
        pointer-events: none;
    }

    .btn-login .lbl {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 1;
        transition: opacity .18s;
    }

        .btn-login .lbl svg {
            width: 16px;
            height: 16px;
        }

    .btn-login .sp {
        display: none;
        width: 22px;
        height: 22px;
        border: 2.5px solid rgba(0,0,0,.2);
        border-top-color: #0a0c10;
        border-radius: 50%;
        animation: spin .7s linear infinite;
        position: relative;
        z-index: 1;
    }

    .btn-login.loading .lbl {
        opacity: 0;
        position: absolute;
    }

    .btn-login.loading .sp {
        display: block;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-reset {
    width: 100%;
    height: 35px;
    margin-top: 10px;
    border: 1.5px solid var(--glass-border2);
    border-radius: 12px;
    background: transparent;
    color: var(--text-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .2s;
}

    .btn-reset:hover {
        background: rgba(255,255,255,.07);
        border-color: rgba(255,255,255,.22);
        color: var(--text-hi);
    }

    .btn-reset svg {
        width: 14px;
        height: 14px;
    }



/* Footer */
.card-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-lo);
    line-height: 1.9;
}

    .card-foot a {
        color: var(--amber);
        text-decoration: none;
        opacity: .8;
    }

        .card-foot a:hover {
            opacity: 1;
        }

/* Responsive */
@media (max-width: 500px) {
    .glass-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .card-h1 {
        font-size: 24px;
    }

    .status-meta {
        display: none;
    }
}
