﻿:root {
    --red: #ee0e0e;
    --blue: #012269;
    --accent: #1f3fff;
    --text: #0b1220;
    --muted: #6b7a99;
    --border: rgba(255,255,255,.16);
    --glass: rgba(255,255,255,.08);
    --glass-strong: rgba(255,255,255,.12);
    /* layout padding */
    --side-pad: clamp(20px, 4vw, 72px);
    /* easing */
    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-soft: cubic-bezier(.2,.7,.2,1);
}

* {
    box-sizing: border-box;
    font-family: system-ui,Inter,Roboto,sans-serif;
}

body {
    margin: 0;
    background: #050914;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* hero fullscreen */
.login-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(1200px 700px at 10% 10%, #0b1b44 0%, transparent 60%), radial-gradient(1000px 700px at 90% 20%, #06163a 0%, transparent 60%), linear-gradient(180deg, #040815 0%, #050a1a 100%);
    isolation: isolate;
}

    /* animated mesh bg */
    .login-hero::before {
        content: "";
        position: absolute;
        inset: -35%;
        z-index: 0;
        pointer-events: none;
        background: radial-gradient(75% 90% at 12% 10%, rgba(31,63,255,.28) 0%, transparent 55%), radial-gradient(70% 85% at 88% 12%, rgba(238,14,14,.26) 0%, transparent 58%), radial-gradient(80% 95% at 50% 88%, rgba(1,34,105,.55) 0%, transparent 62%), radial-gradient(60% 80% at 40% 40%, rgba(31,63,255,.18) 0%, transparent 60%), radial-gradient(55% 70% at 60% 55%, rgba(238,14,14,.14) 0%, transparent 65%);
        filter: blur(60px) saturate(1.25) contrast(1.05);
        opacity: 1;
        animation: meshMove 18s ease-in-out infinite alternate;
        transform: translateZ(0);
    }

@keyframes meshMove {
    0% {
        transform: translate3d(-3%, -2%, 0) scale(1.04) rotate(0deg);
        filter: blur(60px) saturate(1.2) contrast(1.02);
    }

    33% {
        transform: translate3d(3%, 1%, 0) scale(1.07) rotate(0.5deg);
        filter: blur(66px) saturate(1.3) contrast(1.06);
    }

    66% {
        transform: translate3d(-1%, 3%, 0) scale(1.05) rotate(-0.4deg);
        filter: blur(62px) saturate(1.25) contrast(1.04);
    }

    100% {
        transform: translate3d(2%, -1%, 0) scale(1.06) rotate(0.2deg);
        filter: blur(64px) saturate(1.28) contrast(1.05);
    }
}

/* floating orbs */
.bg-orbs .orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(90px);
    opacity: .55;
    mix-blend-mode: screen;
    animation: float 12s ease-in-out infinite;
    pointer-events: none;
    transform: translateZ(0);
    z-index: 0;
}

.orb--red {
    background: var(--red);
    top: -140px;
    left: -160px;
}

.orb--blue {
    background: var(--blue);
    bottom: -180px;
    right: -180px;
    animation-delay: 2s;
}

.orb--accent {
    background: var(--accent);
    top: 18%;
    right: 8%;
    width: 420px;
    height: 420px;
    animation-delay: 4s;
}

@keyframes float {
    0%,100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(-24px) translateX(14px) scale(1.05);
    }
}

/* subtle noise layer */
.noise {
    position: absolute;
    inset: -50%;
    background-image: url('data:image/svg+xml;utf8,\
        <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120">\
          <filter id="n">\
            <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/>\
          </filter>\
          <rect width="120" height="120" filter="url(%23n)" opacity="0.08"/>\
        </svg>');
    mix-blend-mode: soft-light;
    opacity: .12;
    pointer-events: none;
    z-index: 0;
    animation: grain 6s steps(10) infinite;
}

@keyframes grain {
    0% {
        transform: translate(0,0)
    }

    20% {
        transform: translate(-5%,3%)
    }

    40% {
        transform: translate(4%,-2%)
    }

    60% {
        transform: translate(-3%,-4%)
    }

    80% {
        transform: translate(2%,5%)
    }

    100% {
        transform: translate(0,0)
    }
}

/* top bar */
.brand {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 18px var(--side-pad);
    padding-top: calc(18px + env(safe-area-inset-top));
    animation: fadeDown .7s var(--ease-out) both;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 60px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
    opacity: .9;
}

    .nav a {
        color: #dbe6ff;
    }

        .nav a:hover {
            color: #fff;
        }

/* main center */
.hero-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 96px var(--side-pad) 56px var(--side-pad);
    padding-left: calc(var(--side-pad) + env(safe-area-inset-left));
    padding-right: calc(var(--side-pad) + env(safe-area-inset-right));
    position: relative;
    z-index: 1;
}

/* split layout */
.split {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

/* left copy */
.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeUp .9s var(--ease-out) .05s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero-copy h1 {
    font-size: clamp(36px,3.8vw,60px);
    margin: 0;
    letter-spacing: .4px;
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.hero-copy p {
    color: #cbd6f1;
    font-size: clamp(14px,1.4vw,18px);
    max-width: 600px;
    line-height: 1.65;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
}

/* pills + stagger */
.pill-row {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    backdrop-filter: blur(6px);
    transform: translateY(6px);
    opacity: 0;
    animation: pillIn .7s var(--ease-out) forwards, pillFloat 6s ease-in-out infinite;
    animation-delay: var(--d, .2s), 1.2s;
    animation-fill-mode: forwards, both;
}

    .pill:nth-child(1) {
        --d: .15s
    }

    .pill:nth-child(2) {
        --d: .22s
    }

    .pill:nth-child(3) {
        --d: .29s
    }

    .pill:nth-child(4) {
        --d: .36s
    }

@keyframes pillIn {
    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes pillFloat {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-4px)
    }
}

/* login card */
.login-card {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    background: linear-gradient(180deg,var(--glass-strong),var(--glass));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: grid;
    gap: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
    animation: cardIn .9s var(--ease-out) .12s both;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 1;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

/* card shine */
.login-card::after {
    content: "";
    position: absolute;
    inset: -60% -40%;
    background: radial-gradient(600px 300px at var(--mx,50%) var(--my,40%), rgba(255,255,255,.18), transparent 60%);
    opacity: .0;
    transition: opacity .25s var(--ease-soft);
    pointer-events: none;
    transform: translateZ(1px);
}

.login-card:hover::after {
    opacity: .9
}

.login-card h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: .2px;
    color: #fff;
}

label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #e7edff;
    margin-top: 2px;
}

input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(3,8,20,.6);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: .2s var(--ease-soft);
    margin-top: 5px;
}

    input::placeholder {
        color: #aeb9d8;
    }

    input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(31,63,255,.25);
        background: rgba(3,8,20,.85);
        transform: translateY(-1px);
    }

.password {
    position: relative;
}

.eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    color: #cbd6f1;
    transition: transform .15s var(--ease-soft), color .15s;
}

    .eye:hover {
        color: #fff;
        transform: translateY(-50%) scale(1.06);
    }

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    gap: 12px;
    flex-wrap: wrap;
}

.check {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: #dbe6ff;
}

.link {
    color: #b9c6ff;
    font-size: 14px;
}

    .link:hover {
        color: #fff;
        text-decoration: underline;
    }

/* primary btn */
.btn-primary {
    margin-top: 2px;
    background: linear-gradient(180deg, #ff3b3b 0%, var(--red) 100%);
    color: #fff;
    border: 0;
    cursor: pointer;
    padding: 14px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(238,14,14,.35);
    transition: .18s var(--ease-soft);
    width: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    .btn-primary::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(120px 60px at var(--bx,50%) 50%, rgba(255,255,255,.45), transparent 60%);
        opacity: .0;
        transition: opacity .2s var(--ease-soft);
        mix-blend-mode: screen;
    }

    .btn-primary:hover {
        transform: translateY(-1px);
        filter: saturate(1.1);
        box-shadow: 0 14px 32px rgba(238,14,14,.45);
    }

        .btn-primary:hover::before {
            opacity: .8
        }

/* click ripple */
.ripple {
    position: absolute;
    border-radius: 999px;
    transform: translate(-50%,-50%);
    background: rgba(255,255,255,.55);
    pointer-events: none;
    animation: ripple .6s ease-out forwards;
    mix-blend-mode: screen;
}

@keyframes ripple {
    from {
        width: 0;
        height: 0;
        opacity: .6
    }

    to {
        width: 380px;
        height: 380px;
        opacity: 0
    }
}

.request-link {
    margin-top: -2px;
    display: block;
    text-align: center;
    color: #dbe6ff;
    font-size: 14px;
    padding-top: 2px;
    transition: opacity .2s var(--ease-soft), transform .2s var(--ease-soft);
}

    .request-link strong {
        color: #fff;
    }

    .request-link:hover {
        opacity: 1;
        transform: translateY(-1px);
        text-decoration: underline;
    }

/* scroll cue */
.scroll-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    opacity: .8;
    pointer-events: none;
    z-index: 2;
}

    .scroll-hint span {
        display: block;
        width: 18px;
        height: 28px;
        border: 2px solid rgba(255,255,255,.6);
        border-radius: 999px;
        position: relative;
    }

        .scroll-hint span::after {
            content: "";
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 6px;
            border-radius: 999px;
            background: #fff;
            animation: scroll 1.5s infinite;
        }

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translate(-50%,0);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%,10px);
    }
}

/* access request */
.request-section {
    background: linear-gradient(180deg,#050a1a 0%, #07112b 100%);
    padding: 56px var(--side-pad);
    padding-left: calc(var(--side-pad) + env(safe-area-inset-left));
    padding-right: calc(var(--side-pad) + env(safe-area-inset-right));
}

.request-card {
    background: #fff;
    color: var(--text);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    display: grid;
    gap: 16px;
}

.request-head h3 {
    margin: 0;
    font-size: 20px;
}

.request-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

    .request-grid input {
        background: #f6f8ff;
        color: var(--text);
        border: 1px solid #e5e9f7;
        padding: 12px 14px;
        border-radius: 12px;
    }

        .request-grid input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(31,63,255,.12);
            background: #fff;
        }

.btn-secondary {
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    padding: 12px 14px;
}

    .btn-secondary:hover {
        filter: brightness(1.1);
    }

/* responsive */
@media (max-width:980px) {
    .nav {
        display: none;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .login-card {
        max-width: 100%;
        margin-left: 0;
    }

    .request-grid {
        grid-template-columns: 1fr;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content {
        padding-top: 78px;
    }

    /* mobile contrast */
    .hero-copy h1,
    .hero-copy p {
        color: #fff !important;
        opacity: 1 !important;
        text-shadow: 0 2px 12px rgba(0,0,0,.55);
    }

    /* disable parallax */
    .login-card {
        transform: none !important;
    }
}

/* a11y */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .noise {
        display: none;
    }
}
