/* ==========================================================================
   AMS Auth / standalone public pages
   Compact .ui-auth-* component set for the standalone pages (login, MFA,
   password reset, terms, mobile landing/register/status/check-in).
   Built on the --ui-* tokens from ams-ui.css (load ams-ui.css first).
   These pages do NOT load style.css — this file carries the minimal base
   reset those pages previously inherited from it.
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--ui-font);
  background: var(--ui-bg);
  color: var(--ui-text);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Shell — full-viewport navy gradient page (login / MFA / landing)
   -------------------------------------------------------------------------- */
.ui-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--ui-s4);
  background:
    radial-gradient(circle at 20% 80%, rgba(30, 58, 95, 0.9) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44, 82, 130, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(20, 40, 70, 0.95) 0%, rgba(10, 25, 50, 1) 100%),
    linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
}

.ui-auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255, 255, 255, 0.03) 48px, rgba(255, 255, 255, 0.03) 49px),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255, 255, 255, 0.03) 48px, rgba(255, 255, 255, 0.03) 49px);
}

/* --------------------------------------------------------------------------
   Card — white panel on the navy shell
   -------------------------------------------------------------------------- */
.ui-auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: var(--ui-r-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
  .ui-auth-card { padding: 1.5rem; margin: 1rem; }
}

/* --------------------------------------------------------------------------
   Logo, title, footer link row, info note
   -------------------------------------------------------------------------- */
.ui-auth-logo {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.ui-auth-logo-img {
  max-width: 240px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ui-auth-title {
  color: var(--ui-primary);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.ui-auth-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.ui-auth-footer a:not(.ui-btn) {
  color: var(--ui-primary);
  font-size: 0.85rem;
  text-decoration: none;
}

.ui-auth-footer a:not(.ui-btn):hover {
  text-decoration: underline;
}

.ui-auth-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(30, 58, 95, 0.08);
  border-left: 4px solid var(--ui-primary);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--ui-text);
}

/* --------------------------------------------------------------------------
   Light standalone mobile pages (register / status / check-in):
   centered narrow container, centered header block, back link, 2-col row
   -------------------------------------------------------------------------- */
.ui-auth-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.ui-auth-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ui-auth-head h1 {
  color: var(--ui-primary);
  font-size: 1.25rem;
}

.ui-auth-back {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--ui-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Two-column field row (First/Last name, Gender/Club, ...) */
.ui-auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ui-auth-row > .col-6 {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 140px;
}
