:root {
    --bg: #070a0f;
    --bg-elevated: #10151d;
    --accent: #63efb0;
    --accent-hover: #83f6c2;
    --accent-contrast: #04110c;
    --text: #f5f8fb;
    --text-muted: #96a0af;
    --border: rgba(255,255,255,.1);
    --danger: #ff7587;
}

body {
    position: relative;
    overflow: hidden auto;
    padding: 28px;
    background:
        radial-gradient(circle at 76% 18%, rgba(67, 151, 128, .26), transparent 30rem),
        radial-gradient(circle at 13% 80%, rgba(58, 82, 124, .17), transparent 28rem),
        #070a0f;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at center, #000, transparent 74%);
}

.login-box {
    position: relative;
    width: min(100%, 410px);
    max-width: 410px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(16,21,29,.86);
    box-shadow: 0 32px 90px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.045);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.045em;
}

.auth-brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(56,199,150,.24);
}

.login-box h1 {
    margin: 0 0 7px;
    font-size: 30px;
    font-weight: 790;
    letter-spacing: -.05em;
}

.auth-subtitle {
    margin: 0 0 26px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.login-box label {
    margin-top: 16px;
    color: #aab3bf;
    font-size: 12px;
    font-weight: 650;
}

.login-box input {
    min-height: 46px;
    border-color: var(--border);
    border-radius: 13px;
    background: rgba(4,7,11,.64);
}

.login-box input:focus {
    outline: none;
    border-color: rgba(99,239,176,.55);
    box-shadow: 0 0 0 4px rgba(99,239,176,.1);
}

.login-box button {
    min-height: 47px;
    margin-top: 25px;
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(99,239,176,.14);
}

.login-box .error {
    border-radius: 13px;
    line-height: 1.45;
}

@media (max-width: 520px) {
    body {
        min-height: 100dvh;
        align-items: center;
        padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
    }
    .login-box {
        max-width: none;
        padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
        border-width: 1px;
        border-radius: 24px;
    }
}

