/* ================================================
   LOGIN PAGE — Leather Auth Card
   Author: ChatGPT & Gwezie
================================================ */

.auth-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  padding: 24px 24px 26px;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 0% 0%, rgba(255, 228, 160, 0.16), transparent 58%),
    radial-gradient(circle at 100% 100%, rgba(160, 92, 40, 0.20), transparent 60%),
    linear-gradient(to bottom, #2b1a10, #1a1008);
  border: 2px solid #b48a3a;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.75) inset;
}

/* subtle inner highlight band */
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(255, 236, 190, 0.16),
      transparent 40%,
      transparent 60%,
      rgba(0, 0, 0, 0.35));
  mix-blend-mode: screen;
  pointer-events: none;
}

/* inner parchment panel */
.auth-inner {
  position: relative;
  background: radial-gradient(circle at top, rgba(255, 239, 207, 0.14), rgba(25, 14, 6, 0.9));
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55) inset,
    0 8px 22px rgba(0, 0, 0, 0.7);
}

/* Title */
.auth-title {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #f4d074;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(0,0,0,0.85),
    0 0 12px rgba(139, 96, 28, 0.9);
}

.auth-subtitle {
  margin: 0 0 14px;
  font-size: 0.9rem;
  text-align: center;
  color: #e8d5b2;
  opacity: 0.9;
}

/* Form layout */
.auth-form {
  display: grid;
  gap: 12px;
}

.auth-label {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: #f2e3c0;
}

.auth-label span {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Inputs */
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(228, 197, 134, 0.55);
  background: rgba(12, 8, 5, 0.92);
  color: #f7e9c5;
  font-size: 0.95rem;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 4px 12px rgba(0, 0, 0, 0.8);
}

.auth-card input::placeholder {
  color: rgba(240, 220, 180, 0.6);
}

.auth-card input:focus {
  border-color: #f4d074;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8) inset,
    0 0 12px rgba(244, 208, 116, 0.7);
}

/* Error notice (wrap existing .notice) */
.auth-error {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(90, 32, 32, 0.85);
  border: 1px solid rgba(255, 160, 160, 0.7);
  color: #ffe8e8;
  font-size: 0.9rem;
}

/* Actions row */
.auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

/* Buttons: hybrid dark pill + gold outline */
.auth-card .btn,
.auth-card .btn.ghost {
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #c9a241;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.08), transparent 55%),
              linear-gradient(to bottom, #3a2713, #221509);
  color: #fbe6b8;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.85) inset,
    0 8px 16px rgba(0,0,0,0.8);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.auth-card .btn.ghost {
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.06), transparent 55%),
              linear-gradient(to bottom, #24170c, #120a05);
  color: #f5e2bb;
}

.auth-card .btn:hover,
.auth-card .btn.ghost:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,1) inset,
    0 12px 22px rgba(0,0,0,0.9),
    0 0 14px rgba(244, 208, 116, 0.55);
}

.auth-card .btn:active,
.auth-card .btn.ghost:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(0,0,0,1) inset,
    0 4px 10px rgba(0,0,0,0.9);
}

/* Small link text under form (optional) */
.auth-footer-note {
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(240, 220, 190, 0.8);
}

@media (max-width: 600px) {
  .auth-main {
    min-height: calc(100vh - 100px);
    padding: 24px 12px 32px;
  }
  .auth-card {
    padding: 20px 18px 22px;
  }
}
