/* ==================================================
   AUTH — LOGIN / REGISTER (AETERNUM)
   ISOLATO · STABILE · ANTI-CSS-GLOBALE
================================================== */

/* ===============================
   ROOT ISOLATION
================================ */
.auth-page {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 200px); /* navbar + footer */

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 4rem 1.5rem;
}

/* ===============================
   CARD
================================ */
.auth-card {
  width: 100%;
  max-width: 460px;

  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 2.5rem 2.5rem 2.75rem;
}

/* ===============================
   TITLE
================================ */
.auth-card h1 {
  margin: 0 0 2rem;
  text-align: center;

  font-family: "Playfair Display", serif;
  font-size: 2rem;
  letter-spacing: .04em;
}

/* ===============================
   MESSAGE
================================ */
.auth-message {
  margin-bottom: 1.75rem;
  padding: .85rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
}

.auth-message.error {
  background: rgba(122,30,43,.08);
  color: var(--accent);
}

/* ===============================
   FORM — HARD RESET
   (neutralizza CSS globali)
================================ */
.auth-card form {
  all: unset;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem;
}

/* ===============================
   LABEL
================================ */
.auth-card label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===============================
   INPUT
================================ */
.auth-card input {
  all: unset;
  box-sizing: border-box;

  height: 46px;
  padding: 0 .9rem;

  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);

  font-size: .95rem;
  color: var(--text-main);
}

.auth-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,77,.18);
}

/* ===============================
   BUTTON
================================ */
.auth-card button {
  all: unset;

  margin-top: .5rem;
  height: 46px;
  border-radius: 8px;

  background: var(--accent);
  color: #fff;

  font-weight: 600;
  text-align: center;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 10px 24px rgba(0,0,0,.18);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease;
}

.auth-card button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 14px 32px rgba(0,0,0,.25);
}

.auth-card button:active {
  transform: translateY(0);
}

/* ===============================
   LINKS
================================ */
.auth-links {
  margin-top: 1.75rem;
  text-align: center;
  font-size: .85rem;
}

.auth-links a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* ===============================
   MOBILE TUNING
================================ */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.75rem 2.25rem;
  }

  .auth-card h1 {
    font-size: 1.75rem;
  }
}

/* ===============================
   FUTURE-PROOF INPUTS
================================ */
.auth-card select,
.auth-card textarea {
  all: unset;
  box-sizing: border-box;

  width: 100%;
  min-height: 46px;
  padding: .7rem .9rem;

  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);

  font-size: .95rem;
  color: var(--text-main);
}

.auth-card textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-card select:focus,
.auth-card textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,77,.18);
}
