/* Role-based registration (Student / Parent / Professional) */
*,
*::before,
*::after { box-sizing: border-box; }

body.register-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: linear-gradient(
    165deg,
    #ddd0ea 0%,
    #d4e3f2 28%,
    #e8eef5 55%,
    #ebe4f3 100%
  );
}

/* Site header (tlgSiteHdr) sits above main — full width */
.register-page .tlgSiteHdr {
  width: 100%;
}

.register-page-main {
  flex: 1 1 auto;
  width: 100%;
  padding: 0 0 32px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 16px;
}

.register-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.register-aside {
  background: linear-gradient(165deg, #5b3f78 0%, #3d2a55 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 12px 32px rgba(59, 42, 85, 0.25);
}

.register-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.register-aside h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.register-aside-copy {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.92;
}

.register-feature-list { display: grid; gap: 12px; }

.register-feature-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.register-feature-item strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.register-feature-item p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.88;
  line-height: 1.4;
}

.card.register-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.register-head {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hgroup h1 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.hgroup p { margin: 4px 0 0; font-size: 0.82rem; color: #71717a; }

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { background: #e4e4e7; }

.register-body { padding: 18px 20px 22px; }

.register-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  padding: 10px 18px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #52525b;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tab:hover { border-color: #a78bfa; color: #5b3f78; }
.tab.active {
  background: linear-gradient(180deg, #7c5a9c 0%, #5b3f78 100%);
  border-color: #5b3f78;
  color: #fff;
}

.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.flash.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.flash.ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  min-width: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #3f3f46;
}

label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #52525b;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.row > div { min-width: 0; }
.row label { margin-top: 0; }

input,
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #7c5a9c;
  outline-offset: 0;
  border-color: #7c5a9c;
}

.hr {
  height: 1px;
  background: #f0f0f2;
  margin: 16px 0;
}

.password-wrap {
  position: relative;
}
.password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #f4f4f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #52525b;
}
.password-toggle:hover { background: #e4e4e7; }

.note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #71717a;
  line-height: 1.4;
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #3f3f46;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #f4f4f5; }
.btn.primary {
  border: none;
  background: linear-gradient(180deg, #7c5a9c 0%, #5b3f78 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(74, 53, 96, 0.3);
}
.btn.primary:hover { filter: brightness(1.06); }

@media (max-width: 900px) {
  .register-shell { grid-template-columns: 1fr; }
  .register-aside { order: 2; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { padding: 12px 10px 28px; }
  .register-head { padding: 14px; }
  .register-body { padding: 14px; }
  .row { grid-template-columns: 1fr; }
  .tabs { display: grid; grid-template-columns: 1fr; }
  .tab { text-align: center; }
  .register-actions { flex-direction: column-reverse; }
  .register-actions .btn { width: 100%; }
}
