:root {
    color-scheme: dark;
    --bg: #0b1020;
    --panel-border: rgba(255, 255, 255, 0.14);
    --text: #e8eef9;
    --muted: #b7c4d9;
    --accent: #88c0d0;
    --accent-2: #81a1c1;
    --danger: #bf616a;
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.11);
    --shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
    --radius-xl: 30px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

body {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(6, 10, 22, 0.48), rgba(6, 10, 22, 0.78)),
        url("https://raw.githubusercontent.com/ChrisTitusTech/nord-background/refs/heads/main/nord_lake.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.42;
}

body::before {
    width: 380px;
    height: 380px;
    top: -90px;
    left: -80px;
    background: radial-gradient(circle, rgba(136, 192, 208, 0.65), rgba(136, 192, 208, 0));
}

body::after {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(94, 129, 172, 0.7), rgba(94, 129, 172, 0));
}

.login-shell {
    position: relative;
    width: 100%;
    max-width: 560px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(7, 13, 26, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(136, 192, 208, 0.08), rgba(94, 129, 172, 0.02) 45%, rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.login-panel {
    position: relative;
    z-index: 1;
    padding: 56px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(10, 18, 35, 0.84), rgba(8, 14, 28, 0.9));
}

.login-card {
    width: 100%;
    max-width: 390px;
}

.eyebrow {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fd4e4;
}

h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.subtitle {
    margin: 16px 0 28px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.errorlist,
.error-message {
    margin: 0 0 18px 0;
    padding: 13px 15px;
    list-style: none;
    border-radius: var(--radius-md);
    background: rgba(191, 97, 106, 0.16);
    border: 1px solid rgba(191, 97, 106, 0.35);
    color: #ffd9de;
    font-size: 14px;
    line-height: 1.5;
}

form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 9px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #aebbd1;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: rgba(136, 192, 208, 0.7);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 4px rgba(136, 192, 208, 0.12);
    transform: translateY(-1px);
}

.button {
    margin-top: 6px;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 0 18px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #08101f;
    cursor: pointer;
    background: linear-gradient(135deg, #9ed6e7 0%, #88c0d0 42%, #81a1c1 100%);
    box-shadow: 0 16px 36px rgba(94, 129, 172, 0.32);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 42px rgba(94, 129, 172, 0.38);
}

.button:active {
    transform: translateY(0);
}

.meta {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 640px) {
    body {
        padding: 18px;
    }

    .login-panel {
        padding: 38px 22px;
    }

    .login-card {
        max-width: none;
    }

    h1 {
        font-size: 34px;
    }
}