:root {
  --teacher-violet: #6750dc;
  --teacher-indigo: #4331a3;
  --teacher-ink: #292444;
  --teacher-muted: #746f88;
  --teacher-line: #ddd9ec;
}


/* Padrão tipográfico final desta janela e de seus popups. */
html body *:not(#geducacional-font-size-14),
html body *:not(#geducacional-font-size-14)::before,
html body *:not(#geducacional-font-size-14)::after {
  
  font-weight: 400 !important;
}
html body table,
html body table *,
html body .data-table,
html body .data-table * {
  
  font-weight: 400 !important;
  letter-spacing: normal !important;
}
html body table th,
html body .data-table th {
  line-height: 1.3 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}
html body table td,
html body .data-table td {
  line-height: 1.35 !important;
}

.teacher-login-page,
.teacher-login-page * {
  box-sizing: border-box;
  font-weight: 400;
}

.teacher-login-page {
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--teacher-ink);
  background: #f7f6fb;
}

.teacher-login-shell {
  display: grid;
  grid-template-columns: minmax(430px, .86fr) minmax(540px, 1.14fr);
  width: 100%;
  height: 100%;
}

.teacher-login-access {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  height: 100%;
  padding: clamp(22px, 3.2vw, 46px) clamp(30px, 5vw, 72px);
  background: #fff;
  box-shadow: 24px 0 70px rgba(50, 39, 108, .08);
}

.teacher-access-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.teacher-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teacher-ink);
  text-decoration: none;
}

.teacher-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--teacher-violet);
  
  letter-spacing: .08em;
}

.teacher-back { color: var(--teacher-muted);  text-decoration: none; }

.teacher-login-card {
  align-self: center;
  width: min(100%, 440px);
  margin: 0 auto;
}

.teacher-login-card header { margin-bottom: 18px; }

.teacher-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--teacher-violet);
  
  letter-spacing: .16em;
  text-transform: uppercase;
}

.teacher-login-card h1 {
  margin: 0;
  color: var(--teacher-ink);
  
  line-height: 1.06;
  letter-spacing: -.035em;
}

.teacher-login-card header p {
  margin: 10px 0 0;
  color: var(--teacher-muted);
  
}

.teacher-login-form { display: grid; gap: 11px; }
.teacher-login-form .field { display: grid; gap: 6px; }
.teacher-login-form .field > span { color: #4b4660;  }

.teacher-login-form .input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--teacher-line);
  border-radius: 12px;
  color: var(--teacher-ink);
  background: #fbfaff;
  
  outline: none;
}

.teacher-login-form .input:focus {
  border-color: var(--teacher-violet);
  box-shadow: 0 0 0 3px rgba(103, 80, 220, .12);
}

.teacher-login-form .input::placeholder { color: #aaa5b8; }

.teacher-login-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  color: #5d586e;
  
  line-height: 1.25;
}

.teacher-login-form .check input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--teacher-violet);
}

.teacher-form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.teacher-form-row a { color: var(--teacher-violet);  }

.teacher-login-options {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-top: 2px;
}

.teacher-login-options .check { align-items: flex-start; }
.teacher-login-options .check input { margin-top: 1px; }

.teacher-login-options__acceptance {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--teacher-line);
}

.teacher-submit {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--teacher-violet);
  box-shadow: 0 10px 24px rgba(103, 80, 220, .2);
  
}

.teacher-submit:hover { background: #5840c8; }

.teacher-admin-link {
  margin: 14px 0 0;
  color: var(--teacher-muted);
  
  text-align: center;
}

.teacher-admin-link a { color: var(--teacher-violet); }

.teacher-create-button {
  display: grid;
  min-height: 38px;
  margin-top: 9px;
  place-items: center;
  border: 1px solid #c9c0ee;
  border-radius: 12px;
  color: var(--teacher-violet);
  background: #f7f4ff;
  
  text-decoration: none;
}

.teacher-create-button:hover { border-color: var(--teacher-violet); background: #f1edff; }

.teacher-login-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: clamp(42px, 6vw, 86px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(178, 154, 255, .45), transparent 28%),
    radial-gradient(circle at 15% 88%, rgba(98, 185, 255, .25), transparent 35%),
    linear-gradient(145deg, #eeeaff 0%, #e8e9ff 52%, #e3f0ff 100%);
}

.teacher-login-visual::after {
  position: absolute;
  z-index: -1;
  right: -140px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(92, 65, 194, .13);
  border-radius: 50%;
  content: "";
}

.teacher-visual-copy { width: min(100%, 650px); }

.teacher-visual-copy h2 {
  max-width: 650px;
  margin: 0;
  color: var(--teacher-indigo);
  
  line-height: 1.02;
  letter-spacing: -.04em;
}

.teacher-visual-copy p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #696180;
  
  line-height: 1.5;
}

.teacher-login-visual > img {
  align-self: center;
  justify-self: center;
  width: min(88%, 660px);
  max-height: 44vh;
  object-fit: contain;
}

.teacher-routine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.teacher-routine span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(81, 60, 165, .12);
  border-radius: 12px;
  color: #514b66;
  background: rgba(255, 255, 255, .58);
  
}

.teacher-routine i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teacher-violet);
  
  font-style: normal;
}

@media (max-height: 760px) and (min-width: 901px) {
  .teacher-login-access { padding-top: 18px; padding-bottom: 18px; }
  .teacher-login-card header { margin-bottom: 10px; }
  .teacher-login-card h1 {  }
  .teacher-login-form { gap: 8px; }
  .teacher-visual-copy h2 {  }
  .teacher-login-visual > img { max-height: 36vh; }
}

@media (max-width: 900px) {
  .teacher-access-top .teacher-brand { display: none; }
  .teacher-login-shell { grid-template-columns: 1fr; }
  .teacher-login-visual { display: none; }
  .teacher-login-access { padding: 20px clamp(20px, 7vw, 56px); }
}

@media (max-width: 520px) {
  .teacher-brand {  }
  .teacher-login-options { grid-template-columns: 1fr; gap: 7px; }
  .teacher-login-options__acceptance { padding: 8px 0 0; border-top: 1px solid var(--teacher-line); border-left: 0; }
}

@media (max-height: 640px) {
  .teacher-login-card header { margin-bottom: 8px; }
  .teacher-login-card header p { display: none; }
  .teacher-login-form { gap: 7px; }
  .teacher-login-form .input { height: 39px; }
  .teacher-submit { height: 40px; }
  .teacher-admin-link { margin-top: 8px; }
}

/* Android/iOS: rolagem com teclado aberto, áreas seguras e alvos de toque. */
@media (max-width: 900px) {
  .teacher-login-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .teacher-login-shell { min-height: 100dvh; height: auto; }
  .teacher-login-access {
    min-height: 100dvh;
    height: auto;
    grid-template-rows: auto minmax(0, 1fr);
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }
  .teacher-login-card { align-self: center; margin-block: 24px; }
  .teacher-login-form .input { min-height: 48px; font-size: 16px; }
  .teacher-submit, .teacher-create-button { min-height: 48px; }
}

@media (max-width: 420px) {
  .teacher-access-top { align-items: center; }
  .teacher-login-card { margin-block: 18px; padding: 20px 16px; }
  .teacher-login-card h1 { font-size: clamp(25px, 8vw, 32px); }
}

/* 2026-08-28 - Janela de autenticação agrupada */
.teacher-login-card {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid #ddd9ec;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 46px rgba(50, 39, 108, .10);
}

.teacher-login-card > header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ebe8f3;
}

.teacher-login-form {
  gap: 14px;
}

.teacher-login-form .field {
  gap: 7px;
}

.teacher-login-options {
  gap: 12px;
  margin-top: 1px;
  padding: 12px 14px;
  border: 1px solid #e5e1ef;
  border-radius: 12px;
  background: #faf9fe;
}

.teacher-form-row {
  padding: 0 2px;
}

.teacher-submit {
  margin-top: 1px;
}

.teacher-create-button {
  min-height: 40px;
  margin-top: 12px;
}

.teacher-admin-link {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #ebe8f3;
}

@media (max-height: 760px) and (min-width: 901px) {
  .teacher-login-card {
    padding: 20px 22px;
  }

  .teacher-login-card > header {
    margin-bottom: 14px;
    padding-bottom: 13px;
  }

  .teacher-login-options {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (max-width: 520px) {
  .teacher-login-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .teacher-login-options {
    padding: 11px 12px;
  }
}

@media (max-height: 640px) {
  .teacher-login-card {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .teacher-login-card > header {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .teacher-login-options {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .teacher-admin-link {
    margin-top: 10px;
    padding-top: 10px;
  }
}
