/**
 * assets/css/auth.css
 * Loaded only by login.php / signup.php on top of assets/css/output.css.
 * Reuses the existing --navy / --navy-mid / --red / --gold / --bg / --rederr
 * variables (already defined in output.css) — nothing redeclared here.
 */
/* npx @tailwindcss/cli -i assets/css/styles.css -o assets/css/output.css --watch */
.auth-shell {
  min-height: 100vh;
  display: flex;
}

/* ── Left brand panel — hidden on small screens, shown from 1024px up ───── */
.auth-brand {
  display: none;
  position: relative;
  flex: 1 1 40%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 64px;
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 48px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 48px
    );
  border-right: 1px solid var(--navy-mid);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .auth-brand {
    display: flex;
  }
}

.auth-brand-copy {
  max-width: 380px;
}

.auth-brand .phase-grid {
  margin-top: 0;
}

/* ── Right form panel ─────────────────────────────────────────────────── */
.auth-form-side {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  /* max-width: 420px; */
  background: var(--navy);
  border: 1px solid var(--navy-mid);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-field {
  margin-bottom: 18px;
}

.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input {
  padding-right: 44px;
}

.auth-toggle-pw {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
}
.auth-toggle-pw:hover {
  color: #fff;
}
.auth-toggle-pw:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.auth-error {
  font-size: 13px;
  color: var(--rederr);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
  line-height: 1.6;
}
.auth-error ul {
  padding-left: 18px;
  list-style: disc;
}

.auth-footer-link {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 22px;
  letter-spacing: 0.02em;
}

/* Visible keyboard focus on form fields (inputs already get focus:border-gold
   via Tailwind utility classes in the markup; this covers buttons/links too). */
.auth-card a:focus-visible,
.auth-card button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
