/* Phase 1 identity/account layer. Business logic remains in Elschoola Core. */
.els2 .elschoola-core-notice {
  margin-block: 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--els-color-border);
  border-inline-start-width: 5px;
  border-radius: 14px;
  background: var(--els-color-background);
  color: var(--els-color-text);
  font-weight: 700;
}
.els2 .elschoola-core-notice--error { border-inline-start-color: var(--els-color-error); background: #fff3f4; }
.els2 .elschoola-core-notice--success { border-inline-start-color: var(--els-color-secondary); background: var(--els-color-secondary-soft); }
.els2 .elschoola-core-notice--warning { border-inline-start-color: var(--els-color-warning); background: var(--els-color-accent-soft); }
.els2 .elschoola-core-notice--info { border-inline-start-color: var(--els-color-info); background: #edf8fc; }

.els2 .elschoola-registration-intro { margin-bottom: 24px; }
.els2 .elschoola-registration-intro h2 { margin-bottom: 8px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.els2 .elschoola-registration-intro p,
.els2 .elschoola-registration-card > p,
.els2 .elschoola-teacher-path p { color: var(--els-color-muted); }
.els2 .elschoola-registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.els2 .elschoola-registration-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--els-color-border);
  border-radius: 24px;
  background: var(--els-color-surface);
  box-shadow: var(--els-shadow-sm);
}
.els2 .elschoola-registration-card--student { border-top: 5px solid var(--els-color-primary); }
.els2 .elschoola-registration-card--parent { border-top: 5px solid var(--els-color-secondary); }
.els2 .elschoola-registration-card__type { margin-bottom: 5px; color: var(--els-color-primary) !important; font-weight: 900; }
.els2 .elschoola-registration-card h2 { margin-bottom: 8px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.els2 .elschoola-teacher-path { margin-top: 20px; padding: 20px; border-radius: 20px; background: var(--els-color-primary-soft); }
.els2 .elschoola-teacher-path strong { display: block; margin-bottom: 4px; color: var(--els-color-primary-dark); font-family: 'Alexandria', sans-serif; }
.els2 .elschoola-teacher-path a { display: inline-flex; margin-top: 12px; color: var(--els-color-primary); font-weight: 900; }

.els2 .elschoola-core-form { display: grid; gap: 16px; margin-top: 22px; }
.els2 .elschoola-core-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.els2 .elschoola-core-form label { display: grid; gap: 7px; color: var(--els-color-text); font-weight: 800; }
.els2 .elschoola-core-form :is(input:not([type="hidden"]),textarea,select) {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid var(--els-color-border);
  border-radius: 13px;
  background: var(--els-color-background);
  color: var(--els-color-text);
}
.els2 .elschoola-core-form textarea { min-height: 120px; resize: vertical; }
.els2 .elschoola-core-form :is(input,textarea,select):focus { border-color: var(--els-color-primary); outline: 0; box-shadow: 0 0 0 4px rgba(85,38,143,.13); }
.els2 .elschoola-core-form small { margin-top: -10px; color: var(--els-color-muted); }
.els2 .elschoola-core-form button,
.els2 .elschoola-core-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--els-color-primary);
  border-radius: 13px;
  background: var(--els-color-primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.els2 .elschoola-core-button--ghost { background: transparent; color: var(--els-color-primary); }
.els2 .elschoola-core-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.els2 .elschoola-core-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
.els2 .elschoola-core-optional { color: var(--els-color-muted); font-size: .85rem; font-weight: 500; }
.els2 .elschoola-core-disclaimer { padding: 12px 14px; border-radius: 12px; background: var(--els-color-accent-soft); color: var(--els-color-primary-dark); }

.els2 .els2-teacher-registration__panel { align-items: start; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); }
.els2 .els2-teacher-registration__form { min-width: 0; padding: clamp(18px,3vw,30px); border: 1px solid var(--els-color-border); border-radius: 22px; background: var(--els-color-surface); }
.els2 .elschoola-request-status { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0 0; }
.els2 .elschoola-request-status div { padding: 14px; border-radius: 14px; background: var(--els-color-background); }
.els2 .elschoola-request-status dt { color: var(--els-color-muted); font-size: .88rem; }
.els2 .elschoola-request-status dd { margin: 3px 0 0; color: var(--els-color-primary-dark); font-weight: 900; }

.els2 .elschoola-account-foundation { margin-bottom: clamp(26px,5vw,50px); padding: clamp(22px,4vw,38px); border: 1px solid var(--els-color-border); border-radius: 28px; background: linear-gradient(135deg,var(--els-color-primary-soft),var(--els-color-surface)); box-shadow: var(--els-shadow-sm); }
.els2 .elschoola-account-foundation__eyebrow { color: var(--els-color-primary); font-weight: 900; }
.els2 .elschoola-account-foundation h2 { margin: 5px 0 8px; font-size: clamp(1.7rem,3vw,2.4rem); }
.els2 .elschoola-account-foundation > div:first-child > p:last-child { max-width: 720px; color: var(--els-color-muted); }
.els2 .elschoola-account-foundation__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.els2 .elschoola-account-foundation__grid article { padding: 18px; border: 1px solid var(--els-color-border); border-radius: 18px; background: var(--els-color-surface); }
.els2 .elschoola-account-foundation__grid h3 { font-size: 1.05rem; }
.els2 .elschoola-account-foundation__grid p { margin-top: 6px; color: var(--els-color-muted); }
.els2 .elschoola-account-foundation__grid a { display: inline-flex; margin-top: 10px; color: var(--els-color-primary); font-weight: 900; }

@media (max-width: 900px) {
  .els2 .elschoola-registration-grid,
  .els2 .els2-teacher-registration__panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .els2 .elschoola-core-field-row,
  .els2 .elschoola-account-foundation__grid,
  .els2 .elschoola-request-status { grid-template-columns: 1fr; }
  .els2 .elschoola-registration-card { padding: 18px 15px; border-radius: 20px; }
  .els2 .elschoola-core-actions { display: grid; }
}

body.darkluplite--dark-mode-enabled.els2 .elschoola-core-notice,
body.darkluplite--dark-mode-enabled.els2 .elschoola-registration-card,
body.darkluplite--dark-mode-enabled.els2 .els2-teacher-registration__form,
body.darkluplite--dark-mode-enabled.els2 .elschoola-account-foundation__grid article { background: var(--els-color-surface); color: var(--els-color-text); }
