:root {
  --bg: #0f1220;
  --card: #191d33;
  --muted: #9aa3c0;
  --text: #eef1fb;
  --accent: #5b7cfa;
  --accent-hover: #4a6bf0;
  --border: #2a2f4a;
  --input: #12152a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #232a4d 0%, var(--bg) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5bfa);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  color: white;
}

.brand-name { font-weight: 600; font-size: 18px; letter-spacing: .2px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.tabs {
  display: flex;
  background: var(--input);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: .15s;
}

.tab.active { background: var(--accent); color: white; }

.form { display: none; flex-direction: column; }
.form.active { display: flex; animation: fade .25s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: 22px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

label { font-size: 13px; margin-bottom: 6px; color: var(--muted); }

input[type="email"],
input[type="password"],
input[type="text"] {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 18px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,124,250,.2);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 0;
  cursor: pointer;
}

.terms { margin-bottom: 20px; }

.link, .switch a { color: var(--accent); text-decoration: none; }
.link:hover, .switch a:hover { text-decoration: underline; }

.btn {
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }

.switch { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }

.notice {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: #ffd479;
  background: rgba(255,212,121,.08);
  border: 1px solid rgba(255,212,121,.25);
  border-radius: 9px;
  padding: 10px;
}

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }
