/* =========================================================
   DYNASTY — AUTHENTICATION
   Login and registration pages
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.auth-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
}

.auth-mark::before {
  font-size: 17px;
}

.auth-card h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.auth-card p {
  margin-bottom: 24px;
}

.auth-card .dynasty-form {
  text-align: left;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-error {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 67, 54, 0.4);
  border-radius: 8px;
  color: #ef5350;
  font-size: 13px;
}

/* ---------- responsive layout ---------- */

@media (max-width: 420px) {
  .auth-page {
    padding: 28px 16px;
  }

  .auth-card h1 {
    font-size: 20px;
  }
}

/* Dynasty authentication links */
.auth-switch a {
  color: #c9a227 !important;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover,
.auth-switch a:focus {
  color: #e5c65c !important;
  text-decoration: underline;
}