:root {
    color-scheme: dark;
    --bg-0: #07111d;
    --bg-1: #0d1b2a;
    --panel: rgba(9, 16, 28, 0.8);
    --panel-strong: rgba(12, 20, 35, 0.96);
    --line: rgba(149, 196, 255, 0.14);
    --text: #e8f2ff;
    --muted: #94a8bf;
    --accent: #6be7d8;
    --accent-2: #8fe8ff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
    --radius: 28px;
    --radius-sm: 18px;
    --font: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(107, 231, 216, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 179, 107, 0.12), transparent 24%),
        linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, #09101a);
    overflow-x: hidden;
}

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

body::before {
    width: 320px;
    height: 320px;
    left: -120px;
    top: 10%;
    background: rgba(107, 231, 216, 0.16);
}

body::after {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: 12%;
    background: rgba(255, 179, 107, 0.12);
}

a {
    color: var(--accent);
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(100%, 620px);
    display: grid;
    gap: 18px;
}

.auth-header {
    display: grid;
    gap: 14px;
    padding: 0 10px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #04111b;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 40px rgba(107, 231, 216, 0.2);
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-meta span,
.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(107, 231, 216, 0.28);
    background: rgba(107, 231, 216, 0.08);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.card {
    position: relative;
    width: 100%;
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, var(--panel), var(--panel-strong));
}

.card h2 {
    margin: 18px 0 0;
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.card-lead {
    margin: 12px 0 0;
    max-width: 54ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.card-head {
    margin-bottom: 24px;
}

.card-kicker {
    margin-bottom: 10px;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    line-height: 1.6;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert-error {
    background: rgba(255, 125, 125, 0.08);
    border-color: rgba(255, 125, 125, 0.22);
    color: #ffd2d2;
}

.alert-success {
    background: rgba(102, 239, 159, 0.08);
    border-color: rgba(102, 239, 159, 0.22);
    color: #d1ffe5;
}

.register-form {
    display: grid;
    gap: 15px;
}

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

.field label {
    color: #cfe2f7;
    font-size: 0.95rem;
    font-weight: 600;
}

.field input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(160, 190, 230, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    border-color: rgba(107, 231, 216, 0.44);
    box-shadow: 0 0 0 4px rgba(107, 231, 216, 0.12);
}

.password-field {
    display: grid;
    gap: 10px;
}

.ghost-button,
.submit-button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.ghost-button {
    justify-self: end;
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.9rem;
}

.hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #d2e2f4;
    line-height: 1.5;
}

.terms input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.terms a,
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.terms a:hover,
.auth-footer a:hover {
    text-decoration: underline;
}

.submit-button {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #03111c;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 40px rgba(107, 231, 216, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px rgba(107, 231, 216, 0.28);
    filter: brightness(1.03);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-footer {
    display: flex;
    justify-content: center;
    padding-top: 6px;
    color: var(--muted);
}

@media (max-width: 960px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
        padding: 20px 0 32px;
    }

    .auth-shell {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .card {
        border-radius: 22px;
        padding: 22px;
    }

    .brand-row {
        align-items: flex-start;
    }
}
