:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #1d2939;
  --primary: #2563eb;
  --danger: #dc2626;
  --success: #16a34a;
  --border: #cbd5e1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text);
}

.container {
  width: min(640px, 92vw);
  margin: 3rem auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.hidden {
  display: none;
}

h1,
h2 {
  margin: 0 0 1rem;
}

label {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 700;
  margin-top: 1.2rem;
}

button.secondary {
  background: #475569;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border-radius: 999px;
  background-color: #cbd5e1;
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

input:checked + .slider {
  background: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.error,
.success {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--success);
}
