:root {
  --ink: #1b2333;
  --muted: #6b7280;
  --line: #e4eaf1;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --orange: #ff8c1a;
  --orange-deep: #d9720a;
  --r-sm: 8px;
  --r-md: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}
.card h1 { font-size: 20px; margin: 0 0 20px; text-align: center; color: var(--orange-deep); }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label { font-weight: 600; font-size: 13px; line-height: 1.5; padding-top: 2px; }
.form-row input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
}
.form-row small { color: var(--muted); font-size: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--orange);
  color: #fff;
}
.btn:hover { background: var(--orange-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.msg { padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 14px; }
.msg-error { background: #fee2e2; color: #991b1b; }
.msg-success { background: #dcfce7; color: #166534; }
.signout-link { text-align: center; margin-top: 14px; font-size: 12px; }
.signout-link a { color: var(--muted); }
[hidden] { display: none !important; }

.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 2px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  max-height: 180px;
  overflow-y: auto;
}
.autocomplete-list li {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.autocomplete-list li:hover,
.autocomplete-list li.active { background: var(--bg); }
