@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
    --bg: #04130b;
    --surface: #0b1e14;
    --surface-2: #0f261a;
    --text: #f5f7f0;
    --muted: #cfe3d1;
    --accent: #d7ff6a;
    --accent-strong: #ffd94a;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%), var(--bg);
    color: var(--text);
}

h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

.page-shell {
    display: grid;
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.muted {
    color: var(--muted);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin: 0;
}

.checkbox input {
    width: auto;
    margin: 0;
}

label + input,
label + textarea,
label + select {
    margin-top: 0.5rem;
}

.link-button {
    background: transparent;
    color: var(--accent);
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: 600;
}

.link-button:hover {
    color: var(--accent-strong);
}

.field-hint {
    display: block;
    font-size: 0.85rem;
    margin: 0.4rem 0 1rem;
    color: var(--muted);
    min-height: 1.1em;
}

.field-hint.is-error {
    color: #ffb3a8;
}

.field-hint.is-ok {
    color: var(--accent);
}

.caps-hint {
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--surface-2);
    color: var(--text);
    font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
    color: rgba(207, 227, 209, 0.65);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(90deg, #ffffff, var(--accent));
    color: #0b1e14;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 30px rgba(215, 255, 106, 0.25);
}

.btn:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 36px rgba(215, 255, 106, 0.35);
}

.btn.secondary {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.glow {
    position: absolute;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12) 45%, transparent 70%);
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(560px, 92vw);
}

.password-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 12px;
}

.password-meter-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.2s ease;
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px 12px;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 12px;
}

.password-rules span {
    opacity: 0.6;
}

.password-rules span.is-ok {
    opacity: 1;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
}
