/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e8e8ed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card ────────────────────────────────────────────────────── */
.auth-page {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}

.auth-card {
  background: #16161d;
  border: 1px solid #2e2e3a;
  border-radius: 16px;
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-logo {
  font-size: 24px;
  font-weight: 600;
  color: #a8a8b3;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  color: #f4f4f5;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: #6b6b7a;
  text-align: center;
  margin-bottom: 32px;
}

/* ── Form ──────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #9898a8;
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid #2e2e3a;
  border-radius: 8px;
  background: #0f0f16;
  color: #e8e8ed;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input::placeholder { color: #4a4a5a; }
.form-group input:focus { border-color: #6b6b7a; }

.form-error {
  font-size: 13px;
  color: #ff6b6b;
  min-height: 18px;
  padding: 0 2px;
}

.form-group .form-error {
  font-size: 12px;
  margin-top: 2px;
}

.form-group input.input-error {
  border-color: #ff6b6b;
}

.form-group input.input-error:focus {
  border-color: #ff6b6b;
}

/* ── Password requirements ────────────────────────────────── */
.pw-reqs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.pw-req-item {
  font-size: 12px;
  color: #4a4a5a;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.pw-req-item.met {
  color: #22c55e;
}

.pw-req-item.unmet {
  color: #ff6b6b;
}

.pw-req-dot {
  font-size: 10px;
  line-height: 1;
}

.btn-primary {
  padding: 12px 20px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.btn-primary:hover:not(:disabled) { background: #2563eb; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Toggle link ───────────────────────────────────────────── */
.auth-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: #6b6b7a;
}

.btn-link {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover { text-decoration: underline; }

.auth-back {
  text-align: center;
  margin-top: 12px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 440px) {
  .auth-page { padding: 16px; }
  .auth-card { padding: 32px 24px 28px; border-radius: 12px; }
}