/* Auth pages (register.php / login.php) — reuses the app's color tokens
   from user/assets/css/style.css (loaded first), primary white / secondary
   blue / tertiary orange. */

.auth-body {
  background: linear-gradient(180deg, var(--pool-100), var(--cream-50) 40%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-shell { width: 100%; max-width: 420px; }

.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--sun-500); font-weight: 700;
}
.auth-brand h1 {
  font-family: var(--font-display); color: var(--navy-900);
  font-size: 26px; margin: 4px 0 0;
}

.auth-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 30px 22px 26px;
  border: 1px solid var(--line-200);
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--navy-800), var(--pool-500) 55%, var(--sun-500));
}

.auth-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.auth-logo-img { width: 100%; max-width: 220px; height: auto; }
.auth-logo .subword {
  font-size: 10.5px; color: var(--ink-400); letter-spacing: .12em; text-transform: uppercase;
  margin-top: 1px;
}

.auth-card h2 {
  font-family: var(--font-display); color: var(--navy-900);
  font-size: 20px; margin: 14px 0 2px; text-align: center;
}
.auth-sub { color: var(--ink-600); font-size: 13px; margin: 0 0 20px; line-height: 1.5; text-align: center; }

.auth-field { display: block; margin-bottom: 14px; }
.auth-field span {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-600);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%; padding: 11px 13px; font-size: 14.5px; font-family: inherit;
  background: var(--cream-50); color: var(--ink-900);
  border: 1.5px solid var(--line-200); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s ease;
}
.auth-field input:focus { border-color: var(--pool-500); }

.auth-field-otp input {
  letter-spacing: .5em; text-align: center; font-family: var(--font-mono); font-size: 20px;
}

.auth-btn {
  width: 100%; padding: 13px; margin-top: 6px;
  background: var(--pool-500); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background .15s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:active { background: var(--pool-600); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-btn-outline {
  width: 100%; padding: 12px; margin-top: 10px;
  background: var(--white); color: var(--pool-500); border: 1.5px solid var(--pool-100);
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}

.auth-resend-form { margin: 10px 0 0; text-align: center; }
.auth-link-btn {
  background: none; border: none; color: var(--sun-500); font-weight: 600;
  font-size: 13px; font-family: inherit; cursor: pointer; padding: 6px;
}
.auth-link-btn:disabled { color: var(--ink-400); cursor: default; }

.auth-switch { text-align: center; font-size: 12.5px; color: var(--ink-600); margin: 18px 0 0; line-height: 1.6; }
.auth-switch a { color: var(--pool-500); font-weight: 600; }

.auth-alert {
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px;
  margin-bottom: 16px; line-height: 1.5;
}
.auth-alert-error { background: var(--danger-bg); color: var(--danger); }
.auth-alert-ok { background: var(--success-bg); color: var(--success); }
.auth-alert-dev { background: var(--pool-100); color: var(--navy-800); font-family: var(--font-mono); }

.auth-steps {
  display: flex; justify-content: center; gap: 6px; margin: 0 0 18px;
}
.auth-steps span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--line-200);
}
.auth-steps span.is-done { background: var(--pool-500); }
