/* ==========================================================================
   VCO Collective · auth.css — login, register and forgot-password pages
   Split layout: brand panel on the left, form card on the right.
   ========================================================================== */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 880px) { .auth { grid-template-columns: minmax(0, 1fr); } }

/* Brand side */
.auth-side {
  position: relative;
  background: var(--navy-deep);
  color: #E9EEF8;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.auth-side .airmail { --card: var(--navy-deep); }
.auth-side-in {
  flex: 1;
  padding: 40px clamp(20px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-side .brand { color: #fff; }
.auth-side .brand-logo { background: #fff; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; height: 40px; }
.auth-side h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.auth-side h2 span { color: #F4A193; }
.auth-side p.lead { color: #C3CDE2; font-size: 17px; margin: 14px 0 0; max-width: 46ch; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: #DCE3F1; }
.auth-points svg { width: 22px; height: 22px; color: #F4A193; margin-top: 1px; }
.auth-stamp {
  align-self: flex-start;
  border: 1.5px dashed #7F8FB3; border-radius: 6px; padding: 8px 12px;
  color: #AEBBD6; line-height: 1.4;
}
.auth-side::after {
  content: ""; position: absolute; right: -90px; bottom: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .12);
  pointer-events: none;
}
@media (max-width: 880px) {
  .auth-side-in { padding: 24px 16px; gap: 0; }
  .auth-side .hide-sm, .auth-side::after { display: none; }
}

/* Form side */
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.auth-card h1 { font-size: clamp(26px, 3.5vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { margin: 6px 0 0; color: var(--muted); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .row-between { font-size: 14px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 15px; margin: 0; }
.auth-foot a { font-weight: 700; }

.auth-form .field-error { margin-top: -10px; }
.auth-form .grid2 .field-error { margin-top: 0; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--navy); font-weight: 700; font-size: 13px;
  padding: 6px 8px; cursor: pointer; border-radius: 6px;
}
.pw-meter { display: block; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 2px; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background-color .2s; }

.alert { border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; font-weight: 600; }
.alert.error { background: var(--red-soft); color: var(--red); }
.alert.success { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--navy-soft); color: var(--ink); font-weight: 400; }

.demo-box { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; color: var(--muted); }
.demo-box b { color: var(--ink); font-family: var(--font-mono); font-size: 13px; }

.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.steps span.on { background: var(--navy); }

.code-input { font-family: var(--font-mono); font-size: 22px !important; letter-spacing: .4em; text-align: center; }

.back-home { position: absolute; top: 16px; right: 16px; }
.auth-main { position: relative; }
