:root {
    --background: #080b0e;
    --background-soft: #0d1115;

    --surface:
        rgba(18, 23, 29, 0.76);

    --surface-strong:
        rgba(22, 28, 34, 0.92);

    --border:
        rgba(255, 255, 255, 0.075);

    --border-strong:
        rgba(255, 255, 255, 0.12);

    --text: #f5f7f2;
    --text-soft: #a8b0a5;
    --text-muted: #697168;

    --accent: #d6ff48;

    --accent-soft:
        rgba(214, 255, 72, 0.08);

    --danger: #ff8585;

    --font:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


* {
    box-sizing: border-box;
}


html {
    background: var(--background);
}


body {
    min-height: 100vh;

    margin: 0;

    background:
        radial-gradient(
            circle at 16% 18%,
            rgba(214, 255, 72, 0.055),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(104, 125, 255, 0.05),
            transparent 26%
        ),
        var(--background);

    color: var(--text);

    font-family: var(--font);

    overflow-x: hidden;
}


.background-grid {
    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: 0.42;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size:
        52px 52px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}


.orb {
    position: fixed;

    border-radius: 50%;

    filter: blur(1px);

    pointer-events: none;
}


.orb--one {
    width: 280px;
    height: 280px;

    top: -160px;
    left: 37%;

    border:
        1px solid
        rgba(214, 255, 72, 0.07);

    animation:
        orbFloat 12s ease-in-out infinite;
}


.orb--two {
    width: 460px;
    height: 460px;

    right: -280px;
    bottom: -250px;

    border:
        1px solid
        rgba(255, 255, 255, 0.035);

    animation:
        orbFloat 17s ease-in-out infinite reverse;
}


.login-shell {
    width: min(
        1440px,
        100%
    );

    min-height: 100vh;

    margin: auto;

    padding:
        52px
        clamp(28px, 5vw, 80px);

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(390px, 0.72fr);

    gap:
        clamp(60px, 9vw, 150px);

    align-items: center;

    position: relative;

    z-index: 2;
}


.login-brand {
    min-height: 700px;

    display: flex;
    flex-direction: column;
}


.back-link {
    width: fit-content;

    margin-bottom: 54px;

    color: var(--text-muted);

    font-size: 11px;

    text-decoration: none;

    transition:
        color 160ms ease;
}


.back-link:hover {
    color: var(--accent);
}


.brand-badge {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 12px;
}


.brand-badge > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(214, 255, 72, 0.18);

    border-radius: 13px;

    background:
        var(--accent-soft);

    color: var(--accent);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: -0.03em;
}


.brand-badge div {
    display: grid;

    gap: 2px;
}


.brand-badge strong {
    font-size: 13px;
}


.brand-badge small {
    color: var(--text-muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


.brand-content {
    max-width: 680px;

    margin: auto 0;
}


.eyebrow {
    color: var(--accent);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.brand-content h1 {
    max-width: 660px;

    margin:
        17px 0 22px;

    font-size:
        clamp(
            44px,
            5vw,
            74px
        );

    line-height: 0.97;

    letter-spacing: -0.065em;

    font-weight: 650;
}


.brand-content h1 em {
    display: block;

    color: var(--accent);

    font-style: normal;
}


.brand-content p {
    max-width: 520px;

    margin: 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.75;
}


.public-metrics {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 56px;
}


.public-metrics article {
    min-height: 105px;

    padding: 17px;

    display: flex;
    flex-direction: column;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.014);

    backdrop-filter:
        blur(12px);
}


.public-metrics strong {
    color: var(--accent);

    font-size: 29px;

    letter-spacing: -0.05em;
}


.public-metrics span {
    margin-top: auto;

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.4;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.login-area {
    display: grid;

    justify-items: center;
}


.login-card {
    width:
        min(
            100%,
            440px
        );

    padding:
        clamp(
            28px,
            4vw,
            40px
        );

    border:
        1px solid var(--border-strong);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 28, 34, 0.92),
            rgba(12, 16, 20, 0.84)
        );

    backdrop-filter:
        blur(28px);

    box-shadow:
        0 35px 90px
        rgba(0, 0, 0, 0.38);

    position: relative;

    overflow: hidden;
}


.login-card::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -130px;
    right: -100px;

    border-radius: 50%;

    background:
        rgba(214, 255, 72, 0.055);

    filter: blur(8px);
}


.login-card-header {
    position: relative;
}


.login-card-header h2 {
    margin:
        11px 0 9px;

    font-size: 31px;

    letter-spacing: -0.05em;
}


.login-card-header p {
    margin:
        0 0 32px;

    color: var(--text-soft);

    font-size: 12px;

    line-height: 1.65;
}


.field {
    display: grid;

    gap: 8px;

    margin-bottom: 17px;
}


.field > span,
.field-label span {
    color: var(--text-soft);

    font-size: 10px;

    font-weight: 650;
}


.field-control {
    position: relative;
}


.field input {
    width: 100%;
    height: 50px;

    padding:
        0 15px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    outline: none;

    background:
        rgba(5, 8, 11, 0.44);

    color: var(--text);

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}


.field input::placeholder {
    color: #505750;
}


.field input:focus {
    border-color:
        rgba(214, 255, 72, 0.33);

    background:
        rgba(5, 8, 11, 0.65);

    box-shadow:
        0 0 0 4px
        rgba(214, 255, 72, 0.035);
}


#passwordInput {
    padding-right: 64px;
}


.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    transform:
        translateY(-50%);

    min-width: 46px;
    height: 34px;

    border: 0;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.04);

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}


.password-toggle:hover {
    color: var(--accent);
}


.login-button {
    width: 100%;
    height: 52px;

    margin-top: 8px;

    padding:
        0 17px;

    border: 0;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    background: var(--accent);

    color: #10130d;

    font-family: inherit;

    font-size: 12px;

    font-weight: 850;

    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}


.login-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 12px 34px
        rgba(214, 255, 72, 0.11);
}


.login-button:disabled {
    opacity: 0.55;

    cursor: wait;

    transform: none;
}


.login-error {
    margin:
        8px 0;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(255, 133, 133, 0.12);

    border-radius: 10px;

    background:
        rgba(255, 133, 133, 0.055);

    color: var(--danger);

    font-size: 10px;

    line-height: 1.5;
}


.security-info {
    margin-top: 24px;

    padding-top: 19px;

    border-top:
        1px solid var(--border);

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--text-muted);

    font-size: 9px;
}


.security-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 14px
        rgba(214, 255, 72, 0.55);
}


.login-footer {
    margin-top: 20px;

    color: var(--text-muted);

    font-size: 9px;
}


@keyframes orbFloat {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            translate3d(
                20px,
                24px,
                0
            );
    }
}


@media (
    max-width: 960px
) {
    .login-shell {
        grid-template-columns: 1fr;

        gap: 50px;

        padding:
            36px 24px 60px;
    }

    .login-brand {
        min-height: auto;
    }

    .back-link {
        margin-bottom: 40px;
    }

    .brand-content {
        margin-top: 80px;
    }

    .login-area {
        justify-items: stretch;
    }

    .login-card {
        margin: auto;
    }
}


@media (
    max-width: 600px
) {
    .brand-content {
        margin-top: 60px;
    }

    .brand-content h1 {
        font-size: 42px;
    }

    .public-metrics {
        grid-template-columns: 1fr;
    }

    .public-metrics article {
        min-height: 90px;
    }

    .login-card {
        border-radius: 20px;
    }
}
