.cg-auth-page {
  background: var(--cg-bg);
  min-height: 100vh;
  padding: 40px 20px;
}
.cg-auth-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
.cg-auth-shell--single {
  max-width: 520px;
  grid-template-columns: 1fr;
}
.cg-auth-panel--info h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cg-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.cg-select-cards {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.cg-select-card {
  border: 1px solid var(--cg-border);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}
@media (max-width: 900px) {
  .cg-auth-shell { grid-template-columns: 1fr; }
}

.cg-auth-shell--wide { max-width: 1100px; }
.cg-register-sections { display:grid; gap:24px; }
.cg-register-section { padding-top: 8px; border-top:1px solid var(--cg-border); margin-top: 16px; }

/* RC38.3 separated registration + responsive CareGate branding */
.cg-auth-page--branded { background: linear-gradient(135deg, #f8fafc 0%, #eef7f4 100%); }
.cg-brand-head { display:flex; align-items:center; gap:16px; margin-bottom:18px; }
.cg-brand-logo { display:block; height:auto; max-width:100%; object-fit:contain; }
.cg-brand-logo--auth { width:76px; min-width:76px; }
.cg-brand-logo--hero { width:128px; margin-bottom:18px; }
.cg-register-choice-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; margin-top:22px; }
.cg-register-choice { display:block; text-decoration:none; border:1px solid var(--cg-border); border-radius:18px; padding:22px; background:#fff; box-shadow:var(--cg-shadow); color:#0f172a; transition: transform .15s ease, border-color .15s ease; }
.cg-register-choice:hover { transform: translateY(-2px); border-color:#0ea5e9; }
.cg-register-choice strong { display:block; font-size:1.1rem; margin-bottom:8px; }
.cg-register-choice span { display:block; color:var(--cg-muted); line-height:1.5; }
.cg-auth-links--center { justify-content:center; }
.cg-step-progress { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:8px; margin:18px 0 24px; }
.cg-step-progress span { text-align:center; padding:10px 8px; border-radius:999px; background:#f1f5f9; color:#64748b; font-size:.86rem; font-weight:600; }
.cg-step-progress span.is-active { background:#0ea5e9; color:#fff; }
.cg-step-progress span.is-complete { background:#dcfce7; color:#166534; }
.cg-form-step { display:none; }
.cg-form-step.is-active { display:block; }
.cg-step-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:24px; }
@media (max-width: 780px) {
  .cg-brand-head { align-items:flex-start; }
  .cg-brand-logo--auth { width:60px; min-width:60px; }
  .cg-brand-logo--hero { width:96px; }
  .cg-register-choice-grid { grid-template-columns:1fr; }
  .cg-step-progress { grid-template-columns:1fr; }
  .cg-step-progress span { text-align:left; }
  .cg-step-actions { justify-content:stretch; }
  .cg-step-actions .cg-btn { width:100%; justify-content:center; }
}
