:root {
  --bg-a: #eef2ff;
  --bg-b: #fdf2f8;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent-a: #6366f1;
  --accent-b: #ec4899;
  --success-bg: #ecfdf5;
  --success-border: #34d399;
  --error-bg: #fef2f2;
  --error-border: #f87171;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-a), var(--bg-b));
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 12px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.16);
  padding: 24px 20px;
}

.card-header {
  text-align: center;
  margin-bottom: 18px;
}

.brand {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #4f46e5;
}

h1 {
  margin: 8px 0 6px;
  font-size: 26px;
}

.subtitle {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 16px;
}

input:focus {
  outline: 2px solid #c7d2fe;
  border-color: #6366f1;
}

button {
  height: 44px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-btn {
  height: auto;
  border: none;
  background: transparent;
  color: #4f46e5;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.timer {
  color: var(--text-secondary);
  font-size: 14px;
}

.alert {
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: #065f46;
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: #991b1b;
}

.hidden {
  display: none !important;
}
