@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg: #050608;
    --surface: #0b0d10;
    --surface-light: #111419;

    --text: #f2f4f7;
    --muted: #858b94;

    --chrome: #dce1e7;
    --chrome-dark: #7c838d;

    --accent: #b7ff4a;
    --accent-dark: #7cab26;

    --danger: #ff5d6c;

    --border: rgba(255, 255, 255, .10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 55px 55px;
    transform: perspective(500px) rotateX(55deg);
    transform-origin: center bottom;
    opacity: .6;
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .10;
}

.glow-one {
    background: #b7ff4a;
    top: -250px;
    left: -200px;
}

.glow-two {
    background: #5c8cff;
    bottom: -300px;
    right: -200px;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: min(430px, calc(100% - 40px));
}

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    color: white;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.6px;
    margin-bottom: 28px;
}

.brand > span:last-child > span {
    color: #9da3ab;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #858b93 45%,
            #ffffff 70%,
            #555b63
        );

    color: #090a0c;
    font-weight: 900;

    box-shadow:
        inset 1px 1px 2px rgba(255,255,255,.9),
        inset -2px -2px 5px rgba(0,0,0,.45),
        0 0 30px rgba(255,255,255,.08);
}

.auth-card {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.015) 45%,
            rgba(255,255,255,.035)
        ),
        rgba(8,10,13,.88);

    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 38px;

    box-shadow:
        0 35px 100px rgba(0,0,0,.6),
        inset 0 1px 0 rgba(255,255,255,.08);

    backdrop-filter: blur(25px);
}

.card-reflection {
    position: absolute;
    width: 300px;
    height: 100px;
    top: -70px;
    left: -50px;

    background: white;
    opacity: .035;
    filter: blur(35px);
    transform: rotate(-25deg);
}

.auth-header {
    position: relative;
    margin-bottom: 30px;
}

.eyebrow,
.section-number {
    color: var(--accent);
    font-family: "Space Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.auth-header h1 {
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -1.3px;
}

.auth-header p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.error-message {
    margin-bottom: 20px;
    padding: 12px 14px;

    border: 1px solid rgba(255,93,108,.25);
    border-radius: 10px;

    background: rgba(255,93,108,.07);
    color: #ff9ba5;

    font-size: 13px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    color: #b9bec5;
    font-size: 12px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 50px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;

    outline: none;

    padding: 0 15px;

    background: rgba(0,0,0,.32);
    color: white;

    font: inherit;
    font-size: 14px;

    transition:
        border .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.field input::placeholder {
    color: #484d55;
}

.field input:hover {
    border-color: rgba(255,255,255,.18);
}

.field input:focus {
    border-color: rgba(183,255,74,.55);

    background: rgba(183,255,74,.025);

    box-shadow:
        0 0 0 3px rgba(183,255,74,.06),
        0 0 25px rgba(183,255,74,.05);
}

.auth-button {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 52px;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    background:
        linear-gradient(
            120deg,
            #eff2f5,
            #8d949c 38%,
            #ffffff 52%,
            #727981 75%,
            #e9edf1
        );

    color: #08090b;

    font: inherit;
    font-weight: 800;
    font-size: 13px;

    box-shadow:
        inset 0 1px 1px white,
        inset 0 -2px 3px rgba(0,0,0,.3),
        0 10px 30px rgba(0,0,0,.25);

    transition:
        transform .2s ease,
        filter .2s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 40%;
    height: 200%;

    background: rgba(255,255,255,.65);
    transform: rotate(25deg);
    filter: blur(5px);

    transition: left .6s ease;
}

.auth-button:hover::before {
    left: 130%;
}

.button-arrow {
    font-size: 18px;
}

.auth-footer {
    margin-top: 25px;

    text-align: center;

    color: #666c74;
    font-size: 12px;
}

.auth-footer a {
    color: #dce1e7;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--accent);
}

.auth-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 22px;

    color: #41464e;
    font-family: "Space Mono", monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 500px) {

    .auth-card {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 27px;
    }
}