/* Auth pages — login & register */

.auth-section {
  padding: 1.5rem 2rem 2rem;
}

.auth-section h2 {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 1.8rem;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-section .section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0 1.5rem;
  position: relative;
}
.auth-section .section-rule::after {
  content: '';
  display: block;
  border-top: 1px solid var(--border);
  margin-top: 3px;
}

/* Form fields */
.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.3rem;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.3rem 0.1rem;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus {
  border-bottom-color: var(--red);
}

.field input::placeholder {
  color: var(--parchment-dark);
  font-style: italic;
}

/* Submit row */
.auth-submit {
  margin-top: 2rem;
  text-align: center;
}

.auth-submit .btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 1.05rem;
}

/* Error message */
.auth-error {
  display: none;
  background: rgba(139, 26, 26, 0.08);
  border: 1px solid var(--red);
  color: var(--red);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
}
.auth-error.visible {
  display: block;
}

/* Footer link */
.auth-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-light);
}

.auth-footer-link a {
  color: var(--red);
  text-decoration: none;
}
.auth-footer-link a:hover {
  text-decoration: underline;
}
