:root {
  --bg: #f6f7f9;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --danger: #b91c1c;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #e8efff 0%, #f6f7f9 60%), var(--bg);
}

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

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.title {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.field {
  margin-bottom: 16px;
}

label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder { color: #9aa2b1; }

input:focus {
  border-color: color-mix(in srgb, var(--brand) 60%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.password-input {
  position: relative;
}

.eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  color: #64707d;
}

.eye-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.hidden { display: none !important; }

.btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-hover));
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease;
}

.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px); }

.btn.secondary {
  background: #eef2ff;
  color: #1e40af;
  border: 1px solid #c7d2fe;
}
.btn.secondary:hover { filter: none; }

.message {
  margin-top: 12px;
  min-height: 1.25em;
  font-size: 14px;
  color: var(--danger);
}

/* Responsive touch-ups */
@media (max-width: 380px) {
  .card { padding: 20px; }
}
