/* ============================================
   19A. AUTHENTICATION
   ============================================ */
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  background:
    linear-gradient(135deg, rgb(15 23 42 / 0.94), rgb(15 23 42 / 0.74)),
    radial-gradient(circle at 12% 18%, rgb(14 165 233 / 0.24), transparent 32%),
    #eef4fb;
}

.auth-brand-panel {
  min-height: 100%;
  padding: clamp(32px, 6vw, 72px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.auth-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.08);
  color: #e0f2fe;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-eyebrow {
  margin: 0 0 10px;
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand-panel .auth-eyebrow { color: #7dd3fc; }

.auth-brand-panel h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-copy {
  max-width: 480px;
  margin: 18px 0 0;
  color: rgb(226 232 240 / 0.84);
  font-size: 17px;
  line-height: 1.7;
}

.auth-proof-list {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.auth-proof-list span {
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.07);
  color: rgb(248 250 252 / 0.9);
  font-size: var(--text-sm);
}

.auth-card {
  align-self: center;
  justify-self: center;
  width: min(100% - 40px, 500px);
  margin: 36px 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgb(203 213 225 / 0.82);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 28px 80px rgb(15 23 42 / 0.18);
}

.auth-card-header { margin-bottom: 24px; }

.auth-card-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-card-header p:not(.auth-eyebrow) {
  margin: 10px 0 0;
  color: #64748b;
  font-size: var(--text-sm);
}

.auth-form,
.auth-inline-form {
  display: grid;
  gap: 16px;
}

.auth-inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label,
.auth-check {
  color: #334155;
  font-size: var(--text-sm);
  font-weight: 650;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #fff;
  color: #0f172a;
  font: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.auth-field input:focus {
  outline: none;
  border-color: #0284c7;
  background: #f8fbff;
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.14);
}

.auth-field input::placeholder { color: #94a3b8; }

.auth-primary-button,
.auth-secondary-button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.auth-primary-button {
  width: 100%;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.22);
}

.auth-primary-button:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.auth-secondary-button {
  padding: 0 16px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

.auth-secondary-button:hover { background: #bae6fd; }

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 550;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #0f172a;
}

.auth-divider {
  margin: 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.auth-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: var(--text-sm);
}

.auth-links a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

.auth-errors {
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  background: #fef2f2;
  color: #991b1b;
  font-size: var(--text-sm);
}

.auth-errors ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    background: #eef4fb;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 28px 24px 10px;
    color: #0f172a;
    gap: 20px;
  }

  .auth-brand-panel .auth-eyebrow { color: #0284c7; }

  .auth-brand-panel h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .auth-copy { color: #475569; }

  .auth-proof-list { display: none; }

  .auth-brand-mark {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #fff;
  }

  .auth-card {
    align-self: start;
    width: calc(100% - 32px);
    margin: 18px auto 32px;
  }

  .auth-inline-form {
    grid-template-columns: 1fr;
  }
}

