/* ==========================================================================
   Sign Up and Log In pages
   ========================================================================== */

.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(14, 154, 160, 0.14), transparent 60%),
    radial-gradient(800px 520px at 0% 100%, rgba(26, 79, 156, 0.12), transparent 60%),
    #F6F7F9;
  position: relative;
}
.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 43, 87, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 30%, #000 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, transparent 30%, #000 80%);
  pointer-events: none;
}

.auth-top {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 28px;
}

.auth-main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 468px;
  padding: 36px 36px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -28px rgba(15, 43, 87, 0.35);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
}
.auth-card h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
}
.auth-sub { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.auth-card .alert { margin-top: 20px; }
.auth-card form { margin-top: 24px; }
.auth-card .btn-block { margin-top: 26px; height: 46px; }

.auth-switch { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.auth-switch a { font-weight: 600; }

.auth-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 0 16px 28px;
  font-size: 13px;
  color: var(--label);
}
.auth-foot a { color: var(--muted); }

/* Password checklist */
.pw-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 4px;
  padding: 12px 12px;
  border-radius: var(--radius);
  background: var(--bg-subtle-2);
  border: 1px solid var(--border);
}
.pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}
.rule-ic {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #C3CAD5;
  color: transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pw-rules li.is-met { color: var(--success); }
.pw-rules li.is-met .rule-ic { background: var(--success); border-color: var(--success); color: #fff; }

@media (max-width: 520px) {
  .auth-top { height: 64px; padding: 0 16px; }
  .auth-main { justify-content: flex-start; padding-top: 8px; }
  .auth-card { padding: 28px 20px 24px; }
  .auth-card h1 { font-size: 23px; }
  .pw-rules { grid-template-columns: 1fr; }
}
