/* ============================================================
   EINHERJARHALL — auth.css
   Login & Signup page styles
   ============================================================ */

/* ── Full-page layout ── */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(80, 30, 5, 0.2) 0%, transparent 65%),
    var(--charcoal-deep);
}

/* ── Back link ── */
.auth-back {
  position: fixed;
  top: 1.4rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color var(--trans-fast);
  z-index: 100;
}

.auth-back:hover { color: var(--gold); }

.auth-back-rune {
  font-size: 0.9rem;
  font-family: var(--font-body);
}

/* ── Stage — centers the panel ── */
.auth-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

/* ── Panel ── */
.auth-panel {
  width: 100%;
  max-width: 440px;
  background: var(--charcoal);
  border: 1px solid var(--stone);
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
}

/* Top gold line accent */
.auth-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-mid), transparent);
}

.auth-panel-top {
  text-align: center;
  margin-bottom: 1.2rem;
}

.auth-sigil {
  font-size: 2.8rem;
  color: var(--gold-dim);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

/* Reuse shared divider styles — .auth-divider-top / -bottom */
.auth-divider-top,
.auth-divider-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.8rem 0 1.6rem;
}

.auth-divider-rune {
  font-size: 0.75rem;
  color: var(--gold-dim);
  flex-shrink: 0;
}

/* ── Titles ── */
.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Error / Success message ── */
.auth-message {
  padding: 0.75rem 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-left: 2px solid;
}

.auth-message--error {
  background: rgba(110, 21, 21, 0.2);
  border-color: var(--red-mid);
  color: #e8b0b0;
}

.auth-message--success {
  background: rgba(30, 80, 40, 0.2);
  border-color: #3a7a4a;
  color: #a8d8b0;
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ── Field ── */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth-label-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream-dim);
  font-weight: 400;
}

.auth-input {
  background: var(--charcoal-mid);
  border: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone-light);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color var(--trans-fast), background var(--trans-fast);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.auth-input::placeholder { color: var(--stone-light); }

.auth-input:focus {
  border-color: var(--gold-dim);
  background: var(--charcoal-light);
  border-bottom-color: var(--gold);
}

.auth-input:invalid:not(:placeholder-shown) {
  border-bottom-color: var(--red-mid);
}

.auth-field-link {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-decoration: none;
  align-self: flex-end;
  margin-top: 0.3rem;
  transition: color var(--trans-fast);
}

.auth-field-link:hover { color: var(--gold); }

/* ── Terms checkbox ── */
.auth-terms {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 0.4rem;
}

.auth-checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold-mid);
  cursor: pointer;
}

.auth-terms-label {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--cream-dim);
  cursor: pointer;
}

/* ── Submit button ── */
.auth-submit {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background var(--trans-fast), transform var(--trans-fast);
  margin-top: 0.4rem;
}

.auth-submit:hover:not(:disabled) {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Switch link ── */
.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-top: 0.4rem;
}

.auth-switch-link {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--trans-fast);
}

.auth-switch-link:hover { color: var(--gold-bright); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-panel {
    padding: 2.5rem 1.5rem 2rem;
    border-left: none;
    border-right: none;
  }
}
