*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
}
h1 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: #1a1a2e; text-align: center; }
/* Input first in DOM for Tab order; column-reverse keeps label visually above the field. */
.password-field {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}
label { display: block; font-size: 0.875rem; color: #444; }
label a { color: #6366f1; text-decoration: none; }
label a:hover { text-decoration: underline; }
input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
input[type="password"]:focus { border-color: #6366f1; }
.field-hint {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #64748b;
  margin-bottom: 1.25rem;
}
button {
  width: 100%;
  padding: 0.6rem;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: #4f46e5; }
.error { color: #dc2626; font-size: 0.875rem; margin-bottom: 1rem; text-align: center; }
