/* Maya for Educators — full-screen sign-in.
   Same split layout and tokens as the ESL Nearby admin panel login
   (admin/assets/css/style.css): form on the left, the cast on the right.
   Everything is prefixed edl- so it cannot touch any other page. */

:root {
  --edl-primary: #F07D20;
  --edl-primary-dark: #E4680E;
  --edl-ink: #2A2140;
  --edl-muted: #6C6685;
  --edl-dim: #8A8498;
  --edl-line: #E4E0EA;
  --edl-danger-bg: #fde8ee;
  --edl-danger: #be123c;
  --edl-teacher: #0B6E85;
  --edl-school: #C2560C;
}

.edl-body {
  margin: 0; background: #fff; color: var(--edl-ink);
  font-family: "Nunito", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.edl-body *, .edl-body *::before, .edl-body *::after { box-sizing: border-box; }

.edl-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }

.edl-pane { display: flex; flex-direction: column; padding: 36px 72px 40px; background: #fff; min-height: 100vh; min-height: 100dvh; }

.edl-brand {
  display: flex; align-items: center; gap: 12px; align-self: flex-start;
  color: var(--edl-ink); font-weight: 800; font-size: 22px; text-decoration: none;
}
.edl-maya {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #FFF3E0; border: 2px solid #FFD9A8; overflow: hidden;
}
.edl-maya img { width: 100%; height: 100%; object-fit: cover; display: block; }

.edl-wrap {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: min(420px, 100%); margin: 0 auto 0 0; padding: 24px 0;
}
.edl-portal {
  align-self: flex-start; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: #E3F4F7; color: var(--edl-teacher);
}
.edl-school .edl-portal { background: #FDEBD9; color: var(--edl-school); }
.edl-wrap h1 { margin: 0 0 6px; font-size: 34px; line-height: 1.15; font-weight: 800; color: #1a1a1a; }
.edl-sub { margin: 0 0 26px; color: var(--edl-dim); font-weight: 700; font-size: 15px; }

.edl-alert {
  background: var(--edl-danger-bg); color: var(--edl-danger); padding: 11px 14px;
  border-radius: 10px; margin: 0 0 16px; font-weight: 700; line-height: 1.45; font-size: 14.5px;
}
.edl-alert a { color: inherit; text-decoration: underline; }
.edl-alert[hidden] { display: none; }
.edl-note {
  background: #EEF6F1; color: #14532d; padding: 11px 14px; border-radius: 10px;
  margin: 0 0 16px; font-weight: 700; line-height: 1.45; font-size: 14.5px;
}
.edl-note-warn { background: #FFF3E0; color: #7A4A0E; }

.edl-field { margin-bottom: 18px; }
.edl-field label { display: block; margin-bottom: 6px; font-weight: 800; color: var(--edl-ink); }
.edl-field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--edl-line); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff; color: var(--edl-ink);
}
.edl-field input::placeholder { color: #9A91A8; }
.edl-field input:focus { outline: none; border-color: var(--edl-primary); box-shadow: 0 0 0 3px rgba(240, 125, 32, .2); }
.edl-field input:disabled { background: #FAF5EE; color: #9A91A8; cursor: not-allowed; }
.edl-field input[aria-invalid="true"] { border-color: #e11d48; }

.edl-pw { position: relative; }
.edl-pw input { padding-inline-end: 48px; }
.edl-eye {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: none; color: var(--edl-muted); cursor: pointer;
}
.edl-eye:hover { color: var(--edl-ink); }
.edl-eye:focus-visible { outline: 3px solid var(--edl-primary); outline-offset: 0; }
.edl-eye:disabled { opacity: .5; cursor: not-allowed; }
.edl-eye .edl-eye-off { display: none; }
.edl-eye[aria-pressed="true"] .edl-eye-on { display: none; }
.edl-eye[aria-pressed="true"] .edl-eye-off { display: block; }

.edl-submit {
  width: 100%; margin-top: 6px; padding: 12px 16px; border: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--edl-primary), var(--edl-primary-dark));
  box-shadow: 0 6px 16px rgba(240, 125, 32, .35); transition: filter .15s, transform .05s;
}
.edl-submit:hover:not(:disabled) { filter: brightness(1.06); }
.edl-submit:active:not(:disabled) { transform: translateY(1px); }
.edl-submit:focus-visible { outline: 3px solid var(--edl-ink); outline-offset: 2px; }
.edl-submit:disabled { cursor: not-allowed; opacity: .6; box-shadow: none; }
.edl-spin {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: edl-spin .7s linear infinite;
}
.edl-submit.is-busy .edl-spin { display: inline-block; }
.edl-submit.is-busy { cursor: progress; opacity: .85; }
@keyframes edl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .edl-spin { animation-duration: 2s; } }

.edl-demo {
  display: block; margin-top: 14px; padding: 11px 16px; border: 1.5px solid var(--edl-line); border-radius: 8px;
  text-align: center; font-weight: 800; color: var(--edl-ink); text-decoration: none;
}
.edl-demo:hover { border-color: var(--edl-primary); color: var(--edl-primary-dark); }

.edl-alt { margin: 22px 0 0; font-weight: 700; color: var(--edl-muted); font-size: 14.5px; }
.edl-alt a { color: var(--edl-primary-dark); font-weight: 800; text-decoration: none; }
.edl-alt a:hover { text-decoration: underline; }

.edl-legal { margin: 26px 0 0; color: var(--edl-muted); font-size: 12.5px; line-height: 1.5; font-weight: 700; }
.edl-legal strong { display: block; margin-bottom: 4px; color: #7A3410; font-size: 13px; }

.edl-art { position: relative; overflow: hidden; background: #7ec8e3; }
.edl-art-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

@media (max-width: 980px) {
  .edl-split { grid-template-columns: 1fr; }
  .edl-art { display: none; }
  .edl-pane { padding: 28px 22px 36px; min-height: 100vh; }
  .edl-wrap { width: min(440px, 100%); margin-inline: auto; }
  .edl-wrap h1 { font-size: 30px; }
}
@media (max-width: 380px) {
  .edl-pane { padding-inline: 16px; }
  .edl-brand { font-size: 19px; }
}

/* School sign-in: the two ways in (existing institution / new institution). */
.edl-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 22px; padding: 4px; border-radius: 12px; background: #F8F1E8; }
.edl-path {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 9px; text-decoration: none;
  color: var(--edl-muted); border: 1.5px solid transparent; line-height: 1.2;
}
.edl-path small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--edl-dim); }
.edl-path strong { font-size: 14.5px; font-weight: 800; color: var(--edl-ink); }
.edl-path.is-on { background: #fff; border-color: var(--edl-line); box-shadow: 0 1px 3px rgba(42, 33, 64, .08); }
.edl-path:not(.is-on):not(.is-off):hover { background: #fff; border-color: var(--edl-school); }
.edl-path:focus-visible { outline: 3px solid var(--edl-primary); outline-offset: 1px; }
.edl-path.is-off { cursor: default; opacity: .75; position: relative; }
.edl-path em { font-style: normal; font-size: 11px; font-weight: 800; color: #7A4A0E; background: #FFF3E0; border-radius: 999px; padding: 1px 8px; align-self: flex-start; margin-top: 3px; }
.edl-register-line { margin-top: 18px; }
@media (max-width: 380px) { .edl-paths { grid-template-columns: 1fr; } }

/* Continue with Google (shared by both portals). */
.edl-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--edl-dim); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.edl-or::before, .edl-or::after { content: ""; flex: 1; height: 1px; background: var(--edl-line); }
.edl-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; border-radius: 8px;
  border: 1.5px solid var(--edl-line); background: #fff; color: var(--edl-ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.edl-google:hover:not(:disabled) { border-color: var(--edl-primary); background: #FFFAF5; }
.edl-google:focus-visible { outline: 3px solid var(--edl-ink); outline-offset: 2px; }
.edl-google:disabled { cursor: not-allowed; opacity: .6; }
.edl-google.is-busy { cursor: progress; }

/* Forgot password */
.edl-forgot { margin: 8px 0 0; padding: 0; background: none; border: 0; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--edl-primary-dark); cursor: pointer; }
.edl-forgot:hover:not(:disabled) { text-decoration: underline; }
.edl-forgot:focus-visible { outline: 3px solid var(--edl-primary); outline-offset: 2px; border-radius: 4px; }
.edl-forgot:disabled { opacity: .5; cursor: default; }
