:root {
  --bg: #0C0E1A;
  --card: #13162A;
  --accent: #F5891F;
  --text: #F0F0F5;
  --text2: #6B7094;
  --border: #1E2240;
  --success: #00D4AA;
  --error: #FF4757;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }

/* ── Buttons ── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity .2s;
}
.btn-primary:active { opacity: .8; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity .2s;
}
.btn-secondary:active { opacity: .8; }
.btn-secondary:disabled { opacity: .5; cursor: not-allowed; }

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

/* ── Input ── */
.input {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text2); }

/* ── Error ── */
.error-msg {
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
}

/* ── Progress bar ── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
}
.progress-bar .fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .3s linear;
}

/* ── Logo ── */
.logo {
  font-size: 22px;
  font-weight: 700;
}
.logo .accent { color: var(--accent); }

/* ── Layout helpers ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 20px;
}
.form-group {
  width: 100%;
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 4px;
}
.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
