* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000000;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 360px;
  padding: 32px 24px;
  text-align: center;
}

.crest {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.crest-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 3px solid #d9a441;
  box-shadow: 0 0 0 1px #7a5c14 inset, 0 0 18px rgba(212, 160, 23, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest-letters {
  font-family: 'Tangerine', cursive;
  font-size: 46px;
  color: #e0a83a;
  line-height: 1;
}

.brand-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #d9a441;
  font-size: 17px;
  margin-bottom: 28px;
}

h1 {
  font-size: 20px;
  font-weight: 500;
  color: #f5f5f5;
  margin-bottom: 6px;
}

h2 {
  font-size: 14px;
  font-weight: 400;
  color: #8b8f9a;
  margin-bottom: 24px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #7a5c14;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dot.filled {
  background: #e0a83a;
  border-color: #e0a83a;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  justify-items: center;
}

.key {
  width: 76px;
  height: 76px;
  font-size: 26px;
  font-weight: 500;
  border-radius: 50%;
  border: 1.5px solid #4a4a4a;
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
}

.key:active {
  background: #1a1a1a;
  border-color: #d9a441;
}

.key-spacer {
  visibility: hidden;
}

.backspace {
  font-size: 22px;
  color: #b0b0b0;
  border: none;
}

.unlock-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #d9a441, #b8860b);
  color: #0a0a0a;
  cursor: pointer;
}

.unlock-btn:active {
  filter: brightness(0.92);
}

.error-msg {
  margin-top: 14px;
  color: #ef4444;
  font-size: 14px;
  min-height: 18px;
}

.success-msg {
  margin-top: 14px;
  color: #4ade80;
  font-size: 14px;
  min-height: 18px;
}

.hidden {
  display: none !important;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  margin-top: 18px;
  border-radius: 10px;
  border: 1.5px solid #4a4a4a;
  background: #0a0a0a;
  color: #f5f5f5;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.oauth-btn:active {
  filter: brightness(0.9);
}

/* Google and Apple share the same shape/spacing (.oauth-btn) -- these two
   are only here in case either brand ever needs its own look later. */
.apple-btn {
  margin-top: 12px;
}

.or-divider {
  margin: 18px 0;
  color: #6b6f7a;
  font-size: 13px;
}

.email-field {
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.email-field label {
  display: block;
  font-size: 13px;
  color: #8b8f9a;
  margin-bottom: 6px;
}

.email-field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 1.5px solid #4a4a4a;
  background: #0a0a0a;
  color: #f5f5f5;
}

.email-field input[type="email"]:focus {
  outline: none;
  border-color: #d9a441;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: #d9a441;
  font-size: 14px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.text-link:active {
  filter: brightness(0.85);
}

.helper-text {
  color: #8b8f9a;
  font-size: 13px;
  margin: 8px 0 24px;
  line-height: 1.5;
}
