/* Shared styles for login / register / verify / reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: #090b10;
  color: #e8e2d9;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-brand {
  text-decoration: none;
  color: #c9a227;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-brand-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #c9a227, #a07f1a);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #090b10;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #16121a;
  border: 1px solid #2e2536;
  border-radius: 12px;
  padding: 36px 32px;
}

.auth-card h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #c9a227;
  margin-bottom: 6px;
  letter-spacing: .06em;
}

.auth-sub {
  color: #8a8290;
  font-size: .875rem;
  margin-bottom: 22px;
  line-height: 1.5;
}

.auth-field { margin-bottom: 14px; }

.auth-field label {
  display: block;
  font-size: .78rem;
  color: #8a8290;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  background: #0d0b14;
  border: 1px solid #3d3347;
  border-radius: 7px;
  padding: 10px 13px;
  color: #e8e2d9;
  font-size: .94rem;
  font-family: inherit;
  transition: border-color .15s;
}
.auth-field input:focus { outline: none; border-color: #c9a227; }
.auth-field input::placeholder { color: #4a4258; }

.pw-field-wrap { position: relative; }
.pw-field-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #5a5268; cursor: pointer;
  padding: 4px; line-height: 1;
}
.pw-toggle:hover { color: #e8e2d9; }

.auth-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #c9a227, #a07f1a);
  border: none;
  border-radius: 7px;
  color: #090b10;
  font-family: 'Cinzel', serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .07em;
  cursor: pointer;
  transition: opacity .15s;
}
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-btn:not(:disabled):hover { opacity: .88; }

.auth-msg {
  margin-top: 12px;
  min-height: 1.1em;
  font-size: .84rem;
  line-height: 1.5;
  text-align: center;
}
.auth-msg.err { color: #e05252; }
.auth-msg.ok  { color: #52c08a; }

.auth-links {
  margin-top: 20px;
  display: flex;
  gap: 6px 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #8a8290;
}
.auth-links a { color: #c9a227; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-divider { border: 0; border-top: 1px solid #2e2536; margin: 20px 0; }

.auth-icon { text-align: center; font-size: 2.2rem; margin-bottom: 14px; }

.auth-success { text-align: center; }
.auth-success h2 {
  font-family: 'Cinzel', serif;
  color: #c9a227;
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: .05em;
}
.auth-success p { color: #8a8290; font-size: .88rem; line-height: 1.6; }
.auth-success a { color: #c9a227; text-decoration: none; }
.auth-success a:hover { text-decoration: underline; }

.turnstile-wrap { margin-top: 14px; display: flex; justify-content: center; }
