* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0F1113;
  --bg-soft: #16191C;
  --panel: #1B1F23;
  --panel-2: #21262B;
  --line: #2A2F34;
  --text: #ECEDEE;
  --muted: #9AA1A8;
  --accent: #C7F244;
  --accent-ink: #101207;
  --danger: #FF5C5C;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.auth-page {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(199, 242, 68, 0.08), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(150, 120, 255, 0.07), transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrap { width: 100%; max-width: 420px; }

.auth-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent); position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--bg);
}
.brand-name { font-family: "Sora", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.4px; }
.auth-tag { color: var(--muted); font-size: 13px; margin-bottom: 22px; }

.auth-form h2 { font-family: "Sora", sans-serif; font-size: 20px; margin-bottom: 18px; }
.af-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.af-field span { font-size: 12px; color: var(--muted); font-weight: 600; }
.af-field input {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s;
}
.af-field input:focus { border-color: var(--accent); }

.af-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.chk-inline { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.chk-inline input { accent-color: var(--accent); }

.af-link { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; font-family: inherit; padding: 0; }
.af-link:hover { text-decoration: underline; }

.af-submit {
  width: 100%; background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: transform .08s, filter .15s;
}
.af-submit:hover { filter: brightness(1.06); }
.af-submit:active { transform: translateY(1px); }
.af-submit:disabled { opacity: .55; cursor: default; }

.af-err { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 0; }
.af-msg { color: var(--accent); font-size: 13px; margin-top: 12px; word-break: break-word; }
.af-note { color: var(--muted); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.af-alt { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

.hidden { display: none !important; }
