/* auth.css — shared styles for login / register / password pages */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 20px;
}
.auth-box {
  background: #fff;
  border-radius: 14px;
  padding: 38px 34px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  width: 100%;
  max-width: 360px;
}
.auth-box h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.auth-sub {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 24px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: #111; }
button.primary {
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 4px;
}
button.primary:hover { background: #333; }
button.primary:disabled { opacity: 0.6; cursor: default; }
.msg {
  display: none;
  font-size: 13px;
  text-align: center;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}
.msg.error { display: block; color: #b3261e; background: #fde8e6; }
.msg.success { display: block; color: #0a7d27; background: #e6f6ea; }
.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.auth-links a { color: #111; font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-links .row { margin-top: 8px; }
