/* Auth pages: login, forgot password, reset password, change password.
   Split screen - the brand side is deep indigo so the white wordmark reads. */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-brand {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--s-7) var(--s-8);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
/* One quiet gradient bloom, echoing the logo's hexagon */
.auth-brand::before {
  content: "";
  position: absolute; width: 620px; height: 620px; right: -220px; top: -160px;
  background: var(--rg-gradient); opacity: .22;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  filter: blur(2px);
}
.auth-brand > * { position: relative; }
.auth-brand .logo img { height: 54px; width: auto; display: block; }
.auth-brand .pitch { max-width: 30ch; }
.auth-brand .pitch h2 {
  color: var(--on-dark); font-size: var(--fs-2xl); line-height: 1.15; margin-bottom: var(--s-3);
}
.auth-brand .pitch p { color: var(--on-dark-muted); font-size: var(--fs-md); }
.auth-brand .addr { color: var(--on-dark-muted); font-size: var(--fs-xs); max-width: 34ch; line-height: 1.7; }
.auth-brand .feature-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.auth-brand .feature-list li {
  display: flex; gap: 10px; align-items: center;
  color: var(--on-dark-muted); font-size: var(--fs-sm); padding: 5px 0;
}
.auth-brand .feature-list li svg { flex: 0 0 auto; color: var(--rg-blue); }

.auth-panel {
  display: grid; place-items: center; padding: var(--s-6) var(--s-5); background: var(--card);
}
.auth-card { width: min(400px, 100%); }
.auth-card .mark { height: 42px; margin-bottom: var(--s-5); display: none; }
.auth-card h1 { font-size: var(--fs-xl); }
.auth-card .lede { color: var(--muted); margin: 6px 0 var(--s-5); }
.auth-card form { display: flex; flex-direction: column; gap: var(--s-4); }
.auth-card .aux { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); }
.auth-card .foot { margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.auth-alert {
  display: none; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: var(--r); font-size: var(--fs-sm);
  background: var(--bad-bg); color: var(--bad); border: 1px solid #F6CFD6;
}
.auth-alert.show { display: flex; }
.auth-alert.ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE6D5; }

.demo-note {
  margin-top: var(--s-5); padding: var(--s-4); border: 1px dashed var(--line-strong);
  border-radius: var(--r); background: var(--card-alt); font-size: var(--fs-xs); color: var(--text-2);
}
.demo-note b { color: var(--text); }
.demo-note code { font-size: 11px; background: var(--neutral-bg); padding: 1px 5px; border-radius: 4px; }

.pw-meter { display: flex; gap: 4px; margin-top: 6px; }
.pw-meter i { height: 4px; flex: 1; border-radius: 2px; background: var(--neutral-bg); }
.pw-meter i.on { background: var(--ok); }
.pw-meter i.mid { background: var(--warn); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card .mark { display: block; }
}
