/* Approved mint / forest / yellow login theme, shared by both account types. */
/* Dashboard styles must not add their second header to the sign-in screen. */
html body.locked:has(#tGate.duTeacherLogin:not([hidden])) aside.brand {
  display: none !important;
}
html body.locked:has(#tGate.duTeacherLogin:not([hidden])) {
  padding: 0 !important;
}
#gate.duLoginDesign .gate-box,
#tGate.duTeacherLogin .duTeacherBox {
  background: #e4f3ec;
  color: #10372d;
  border: 1px solid #cde1d6;
  border-radius: 28px;
  overflow: hidden;
}
#gate.duLoginDesign .duHeader,
#tGate.duTeacherLogin .duLoginHeader {
  padding: 24px 40px;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #0d4f3c12;
}
#gate.duLoginDesign .duHeader b,
#tGate.duTeacherLogin .duLoginBrand {
  font:
    700 30px/1.3 "IBM Plex Sans Arabic",
    sans-serif;
  color: var(--c-green);
  text-decoration: none;
}
#gate.duLoginDesign .duHeader b::after,
#tGate.duTeacherLogin .duLoginBrand::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--c-gold);
  border-radius: 50%;
}
#gate.duLoginDesign .duHeader span,
#tGate.duTeacherLogin .duLoginHeader > span {
  font-size: 12px;
  color: #557268;
  margin-inline-start: auto;
}
#gate.duLoginDesign .duRoleLink,
#tGate.duTeacherLogin .duRoleLink {
  font:
    500 13px/1.8 "IBM Plex Sans Arabic",
    sans-serif;
  color: var(--c-green);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#gate.duLoginDesign #gChoose {
  padding: 22px 64px 38px;
}
#gate.duLoginDesign .duWelcomeBody {
  min-height: 570px;
  gap: 48px;
}
#gate.duLoginDesign .duWelcomeCopy > .duEyebrow {
  display: inline-flex;
  margin: 0 0 15px;
  font-size: 12px;
}
#gate.duLoginDesign .login-title {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.6;
}
#gate.duLoginDesign .login-lead {
  font-size: 15px;
  margin-top: 14px;
  margin-bottom: 24px;
  color: #557268;
}
#gate.duLoginDesign .duAuth,
#tGate.duTeacherLogin .duAuth {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  min-width: 0;
}
#gate.duLoginDesign .duAuth .duAuthAction,
#gate.duLoginDesign .duEntryButtons .duAuthAction,
#tGate.duTeacherLogin .duAuth .duAuthAction {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 11px 18px;
  border: 2px solid var(--c-green);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font:
    600 16px/1.6 "IBM Plex Sans Arabic",
    sans-serif;
  box-shadow: none;
}
#gate.duLoginDesign .duAuth .duAuthPrimary,
#gate.duLoginDesign .duEntryButtons .duEntryPrimary,
#tGate.duTeacherLogin .duAuth .duAuthPrimary,
#gate.duLoginDesign .duAuth:not(.duAuthReady) > .duCodeToggle,
#tGate.duTeacherLogin .duAuth:not(.duAuthReady) > .duCodeToggle {
  background: var(--c-green);
  color: #fff;
  box-shadow: 0 4px 0 #063c2c;
}
#gate.duLoginDesign .duAuthAction:disabled,
#tGate.duTeacherLogin .duAuthAction:disabled {
  opacity: 0.6;
  cursor: wait;
}
.duAuth .duAuthIcon,
.duEntryButtons .duAuthIcon {
  display: inline-flex;
  flex: none;
}
.duAuth .duAuthIcon svg,
.duEntryButtons .duAuthIcon svg {
  width: 21px;
  height: 21px;
}
#gate.duLoginDesign .duPasskeyCaption,
#tGate.duTeacherLogin .duPasskeyCaption {
  font-size: 12px;
  color: #557268;
  text-align: center;
  line-height: 1.8;
  margin: 2px 0 4px;
}
#gate.duLoginDesign .duAuthDivider,
#tGate.duTeacherLogin .duAuthDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #557268;
  font-size: 12px;
  margin: 0;
}
.duAuthDivider::before,
.duAuthDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #bfd7c9;
}
.duAuth:not(.duAuthReady) > .duPasskeyCaption,
.duAuth:not(.duAuthReady) > .duAuthDivider {
  display: none !important;
}
#gate.duLoginDesign .duAuthHelp,
#tGate.duTeacherLogin .duAuthHelp {
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
  color: #557268;
  margin: 4px 0 0;
}
#gate.duLoginDesign .duEntryButtons {
  display: grid;
  gap: 13px;
}
#gate.duLoginDesign .duEntryButtons .duAuthAction {
  min-height: 57px;
}
#gate.duLoginDesign .duEntryHelp {
  margin: 1px 0 0;
  text-align: center;
  color: #557268;
  font-size: 12px;
  line-height: 1.8;
}
#gate.duLoginDesign .duStudentBack {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-green);
  font:
    500 13px "IBM Plex Sans Arabic",
    sans-serif;
}
#gate.duLoginDesign .duStudentBack::before {
  content: "→";
  display: inline-block;
  font-size: 19px;
}
#gate.duLoginDesign #gLog.duInlineCode {
  display: block;
  min-height: 0;
  padding: 6px 0 0;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
#gate.duLoginDesign #gLog .duFormContent {
  max-width: none;
}
#gate.duLoginDesign .duCodeLabel,
#tGate.duTeacherLogin .duCodeLabel {
  display: block;
  color: var(--c-green);
  font-size: 13px;
  text-align: right;
  margin: 0 0 7px;
}
#gate.duLoginDesign #gLog .login-code-boxes {
  display: none;
}
#gate.duLoginDesign #gCodeW {
  height: auto;
  margin: 0;
}
#gate.duLoginDesign #gCode {
  position: static;
  inset: auto;
  width: 100%;
  height: 54px;
  opacity: 1;
  color: #10372d;
  background: #fff;
  border: 2px solid #96b9a7;
  border-radius: var(--r-pill);
  font:
    500 20px "IBM Plex Sans Arabic",
    sans-serif;
  letter-spacing: 5px;
  text-align: center;
  padding: 10px 18px;
  caret-color: var(--c-green);
}
#gate.duLoginDesign #gCode:focus-visible {
  outline: 3px solid #ac7a08;
  outline-offset: 3px;
}
#gate.duLoginDesign #gCodeW.bad #gCode {
  border-color: var(--c-danger);
}
#gate.duLoginDesign #gCodeW.good #gCode {
  border-color: var(--c-green);
}
#gate.duLoginDesign #gLog .duCodeActions {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}
#gate.duLoginDesign #gLog .login-next {
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-pill);
  margin: 0;
  font-size: 16px;
}
#gate.duLoginDesign #gForgot {
  min-height: 44px;
}
#gate.duLoginDesign .duLoginFooter,
#tGate.duTeacherLogin .duLoginFooter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: #dcefe3;
  border-top: 1px solid #cfe3d6;
  color: #527262;
  font-size: 12px;
  line-height: 1.8;
}
#gate.duLoginDesign .duAboutLink {
  color: var(--c-green);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
#gate.duLoginDesign .duPasskeyMount p,
#tGate.duTeacherLogin .duPasskeyMount p {
  font-size: 13px;
  line-height: 1.8;
  color: #557268;
  margin: 9px 0 0;
}
#gate.duLoginDesign .duPasskeyMount p:empty,
#tGate.duTeacherLogin .duPasskeyMount p:empty {
  display: none;
}
#gate.duLoginDesign .duPasskeyMount p.bad,
#tGate.duTeacherLogin .duPasskeyMount p.bad {
  color: #a52e29;
}
#tGate.lab.duTeacherLogin {
  display: block;
  min-height: 100dvh;
  padding: 28px 24px;
  background: #f3f8f4 !important;
}
#tGate.duTeacherLogin .duTeacherBox {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
#tGate.duTeacherLogin .duTeacherWelcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 54px;
  padding: 46px 64px;
  min-height: 608px;
}
#tGate.duTeacherLogin .duTeacherCopy {
  min-width: 0;
  max-width: 470px;
}
#tGate.duTeacherLogin .duEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-green);
  font-size: 12px;
  margin: 0 0 15px;
}
#tGate.duTeacherLogin .duEyebrow::before {
  content: "";
  height: 2px;
  width: 19px;
  background: #a48a42;
}
#tGate.duTeacherLogin .duTeacherTitle {
  font:
    700 36px/1.7 "IBM Plex Sans Arabic",
    sans-serif;
  letter-spacing: -0.5px;
  color: #10372d;
  margin: 0 0 12px;
}
#tGate.duTeacherLogin .duTeacherDescription {
  font-size: 15px;
  color: #557268;
  line-height: 1.9;
  margin: 0 0 26px;
}
#tGate.duTeacherLogin .duTeacherLabel {
  display: block;
  font-size: 12px;
  line-height: 1.8;
  color: var(--c-green);
  margin: 0 0 8px;
}
#tGate.duTeacherLogin .duLoginHeader #themeBtn {
  position: static !important;
  inset: auto !important;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  color: var(--c-green);
  font-size: 19px;
  box-shadow: none;
  flex: none;
  display: grid;
  place-items: center;
}
#tGate.duTeacherLogin .duLoginHeader #themeBtn svg {
  width: 20px;
  height: 20px;
}
#tGate.duTeacherLogin .duTeacherVisual {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  min-width: 0;
  text-align: center;
}
#tGate.duTeacherLogin .login-scene {
  position: relative;
  width: 390px;
  max-width: 100%;
  height: 330px;
  margin: 0;
  pointer-events: none;
}
#tGate.duTeacherLogin .login-scene > svg {
  position: absolute;
}
#tGate.duTeacherLogin .login-scene > .bg {
  inset: 0;
  width: 100%;
  height: 100%;
}
#tGate.duTeacherLogin .duTeacherCaption {
  margin: 0;
  color: #557268;
  font-size: 14px;
  line-height: 1.9;
}
#tGate.duTeacherLogin .duTeacherCaption strong,
#tGate.duTeacherLogin .duTeacherCaption span {
  display: block;
}
#tGate.duTeacherLogin .duTeacherCaption strong {
  font-weight: 500;
  font-size: 18px;
  color: var(--c-green);
  margin-bottom: 4px;
}
#tGate.lab.duTeacherLogin #loginForm.duInlineCode {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 6px 0 0 !important;
  margin: 0;
  background: transparent !important;
  border: 0;
  text-align: right;
}
#tGate.duTeacherLogin #loginForm .login-numpad {
  display: none !important;
}
#tGate.lab.duTeacherLogin #loginForm #pin {
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  margin: 0;
  font-size: 20px;
  border-radius: var(--r-pill);
}
#tGate.lab.duTeacherLogin #pinGo {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  margin-top: 12px;
  border-radius: var(--r-pill);
}
#tGate.duTeacherLogin button:focus-visible,
#tGate.duTeacherLogin a:focus-visible {
  outline: 3px solid #ac7a08;
  outline-offset: 4px;
}
/* The code inputs, errors and forgotten-code sheet use their original handlers. */
.duLoginDesign [hidden],
.duTeacherLogin [hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  #gate.duLoginDesign .gate-box,
  #tGate.duTeacherLogin .duTeacherBox {
    max-width: 440px;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  #gate.duLoginDesign .duHeader,
  #tGate.duTeacherLogin .duLoginHeader {
    padding: 4px 19px;
    min-height: 52px;
    gap: 12px;
    flex: none;
  }
  #gate.duLoginDesign .duHeader b,
  #tGate.duTeacherLogin .duLoginBrand {
    font-size: 24px;
    line-height: 1.4;
  }
  #gate.duLoginDesign .duHeader span,
  #tGate.duTeacherLogin .duLoginHeader > span {
    display: none;
  }
  #gate.duLoginDesign .duRoleLink,
  #tGate.duTeacherLogin .duRoleLink {
    margin-inline-start: auto;
    font-size: 12px;
  }
  #gate.duLoginDesign #gChoose {
    padding: 10px 19px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  #gate.duLoginDesign .duWelcomeBody {
    min-height: 0;
    gap: 8px;
    flex: 1;
    justify-content: center;
  }
  #gate.duLoginDesign .duWelcomeCopy > .duEyebrow {
    display: none;
  }
  #gate.duLoginDesign .login-title {
    font-size: 27px;
    line-height: 1.5;
    letter-spacing: -0.4px;
    margin: 0;
  }
  #gate.duLoginDesign .login-title mark {
    border-radius: var(--r-xs);
    padding: 0 8px 2px;
  }
  #gate.duLoginDesign .login-lead {
    font-size: 12px;
    line-height: 1.7;
    margin: 8px 0 10px;
    max-width: none;
  }
  #gate.duLoginDesign .duVisual {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    flex: none;
  }
  #gate.duLoginDesign .duVisual .login-scene {
    width: 390px;
    max-width: none;
    height: 330px;
    transform: scale(0.33);
    transform-origin: center top;
    margin: 0;
    flex: none;
  }
  #gate.duLoginDesign .duAuth,
  #tGate.duTeacherLogin .duAuth {
    gap: 7px;
  }
  #gate.duLoginDesign .duAuth .duAuthAction,
  #gate.duLoginDesign .duEntryButtons .duAuthAction,
  #tGate.duTeacherLogin .duAuth .duAuthAction {
    min-height: 48px;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.5;
  }
  #gate.duLoginDesign .duAuth .duAuthPrimary,
  #gate.duLoginDesign .duEntryButtons .duEntryPrimary,
  #tGate.duTeacherLogin .duAuth .duAuthPrimary {
    box-shadow: 0 3px 0 #063c2c;
  }
  #gate.duLoginDesign .duPasskeyCaption,
  #tGate.duTeacherLogin .duPasskeyCaption {
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
  }
  #gate.duLoginDesign .duAuthDivider,
  #tGate.duTeacherLogin .duAuthDivider {
    font-size: 11px;
    line-height: 1.5;
    min-height: 18px;
  }
  #gate.duLoginDesign .duAuthHelp,
  #tGate.duTeacherLogin .duAuthHelp {
    font-size: 11px;
    line-height: 1.8;
    margin: 3px 0 0;
  }
  #gate.duLoginDesign .duStudentBack {
    margin: 0 0 3px;
    min-height: 40px;
    font-size: 12px;
    padding-inline: 4px;
  }
  #gate.duLoginDesign .duEntryButtons {
    gap: 12px;
  }
  #gate.duLoginDesign .duEntryHelp {
    font-size: 11px;
    line-height: 1.8;
  }
  #gate.duLoginDesign #gLog.duInlineCode {
    padding: 5px 0 0 !important;
    min-height: 0;
  }
  #gate.duLoginDesign #gCode {
    height: 48px;
    font-size: 18px;
  }
  #gate.duLoginDesign #gLog .duCodeActions {
    margin-top: 8px;
    gap: 0;
  }
  #gate.duLoginDesign #gLog .login-next {
    min-height: 48px;
    font-size: 14px;
  }
  #tGate.lab.duTeacherLogin {
    padding: 0;
    background: #e4f3ec !important;
  }
  #tGate.duTeacherLogin .duTeacherWelcome {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 19px 16px;
    min-height: 0;
    flex: 1;
    justify-content: flex-start;
  }
  #tGate.duTeacherLogin .duTeacherCopy {
    text-align: center;
    width: 100%;
    max-width: none;
  }
  #tGate.duTeacherLogin .duTeacherVisual {
    order: -1;
    gap: 0;
    width: 100%;
    height: 110px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: none;
  }
  #tGate.duTeacherLogin .login-scene {
    width: 390px;
    max-width: none;
    height: 330px;
    transform: scale(0.33);
    transform-origin: center top;
    margin: 0;
    flex: none;
  }
  #tGate.duTeacherLogin .duTeacherCaption {
    display: none;
  }
  #tGate.duTeacherLogin .duTeacherTitle {
    font-size: 25px;
    line-height: 1.5;
    margin: 0 0 8px;
  }
  #tGate.duTeacherLogin .duEyebrow {
    display: none;
  }
  #tGate.duTeacherLogin .duTeacherDescription {
    font-size: 12px;
    line-height: 1.7;
    margin: 0 0 10px;
  }
  #tGate.lab.duTeacherLogin #loginForm #pin {
    height: 48px;
    font-size: 18px;
  }
  #tGate.lab.duTeacherLogin #pinGo {
    min-height: 48px;
    font-size: 14px;
    margin-top: 8px;
  }
  #gate.duLoginDesign .duLoginFooter,
  #tGate.duTeacherLogin .duLoginFooter {
    padding: 6px 16px;
    font-size: 11px;
    gap: 8px;
    min-height: 44px;
    line-height: 1.6;
    flex: none;
  }
  #gate.duLoginDesign.duCodeOpen .duVisual,
  #tGate.duTeacherLogin.duCodeOpen .duTeacherVisual {
    display: none;
  }
  #gate.duLoginDesign.duCodeOpen .login-lead,
  #tGate.duTeacherLogin.duCodeOpen .duTeacherDescription,
  #gate.duLoginDesign.duCodeOpen .duAuthHelp,
  #tGate.duTeacherLogin.duCodeOpen .duAuthHelp {
    display: none;
  }
  #gate.duLoginDesign.duCodeOpen .login-title,
  #tGate.duTeacherLogin.duCodeOpen .duTeacherTitle {
    font-size: 23px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
}
@media (max-width: 370px) {
  #gate.duLoginDesign .login-title,
  #tGate.duTeacherLogin .duTeacherTitle {
    font-size: 25px;
  }
  #gate.duLoginDesign .duWelcomeBody,
  #tGate.duTeacherLogin .duTeacherWelcome {
    gap: 6px;
  }
}
@media (max-width: 900px) and (max-height: 660px) {
  #gate.duLoginDesign .duVisual,
  #tGate.duTeacherLogin .duTeacherVisual {
    height: 88px;
  }
  #gate.duLoginDesign .duVisual .login-scene,
  #tGate.duTeacherLogin .login-scene {
    transform: scale(0.265);
  }
  #gate.duLoginDesign .login-title,
  #tGate.duTeacherLogin .duTeacherTitle {
    font-size: 24px;
  }
  #gate.duLoginDesign .duWelcomeBody,
  #tGate.duTeacherLogin .duTeacherWelcome {
    gap: 5px;
  }
}
html[data-theme="dark"] #tGate.duTeacherLogin,
html[data-theme="dark"] #tGate.duTeacherLogin .duTeacherBox {
  background: #102e25 !important;
  color: #e5f4ec;
  border-color: #36594a;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duLoginHeader {
  border-color: #36594a;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duLoginBrand,
html[data-theme="dark"] #tGate.duTeacherLogin .duRoleLink,
html[data-theme="dark"] #tGate.duTeacherLogin .duTeacherLabel,
html[data-theme="dark"] #tGate.duTeacherLogin .duTeacherTitle {
  color: #e5f4ec;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duTeacherDescription,
html[data-theme="dark"] #tGate.duTeacherLogin .duAuthHelp,
html[data-theme="dark"] #tGate.duTeacherLogin .duPasskeyCaption,
html[data-theme="dark"] #tGate.duTeacherLogin .duAuthDivider,
html[data-theme="dark"] #tGate.duTeacherLogin .duPasskeyMount p {
  color: #b2ccbe;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duAuthDivider::before,
html[data-theme="dark"] #tGate.duTeacherLogin .duAuthDivider::after {
  background: #36594a;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duAuth .duAuthAction {
  background: #193d30;
  color: #98ddbd;
  border-color: #98ddbd;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duAuth .duAuthPrimary,
html[data-theme="dark"] #tGate.duTeacherLogin .duAuth:not(.duAuthReady) > .duCodeToggle {
  background: #98ddbd;
  color: #10372d;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duCodeLabel {
  color: #98ddbd;
}
html[data-theme="dark"] #tGate.duTeacherLogin #loginForm #pin {
  background: #193d30 !important;
  color: #e5f4ec;
  border-color: #98ddbd;
}
html[data-theme="dark"] #tGate.duTeacherLogin #pinGo {
  background: #98ddbd !important;
  color: #10372d;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duLoginHeader #themeBtn {
  color: #98ddbd;
}
html[data-theme="dark"] #tGate.duTeacherLogin .duLoginFooter {
  background: #15372b;
  color: #b2ccbe;
  border-color: #36594a;
}

/* ===== تحسين دخول الطالب (٣ نوفمبر، طلب المعلم) =====
   شاشة دخول وحدة (البصمة + الرمز)، خانة رمز أوضح، «دخول المعلم» تحت، نص أكبر، والوضع الداكن. */
#gate.duLoginDesign #gHave {
  display: none;
}
#gate.duLoginDesign .duCodeHint {
  margin: 8px 0 0;
  color: #557268;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
#gate.duLoginDesign .duCodeCount {
  color: var(--c-green);
  white-space: nowrap;
}
#gate.duLoginDesign #gCode {
  text-transform: uppercase;
  direction: ltr;
}
#gate.duLoginDesign #gCode::placeholder {
  text-transform: none;
  color: #9db3aa;
  letter-spacing: 5px;
}
#gate.duLoginDesign .duAuth:not(.duAuthReady) > .duStuHelp {
  display: none;
}
#gate.duLoginDesign .duStuHelp {
  margin: 10px 0 0;
  color: #557268;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
#gate.duLoginDesign .duTeacherFoot {
  color: inherit;
}
#gate.duLoginDesign .duTeacherFootLink {
  color: var(--c-green);
  font-weight: 700;
  text-decoration: underline;
}
#gate.duLoginDesign .duPasskeyCaption {
  font-size: 13px;
}
@media (max-width: 900px) {
  #gate.duLoginDesign .duVisual {
    height: 172px;
  }
  #gate.duLoginDesign .duVisual .login-scene {
    transform: scale(0.52);
  }
  #gate.duLoginDesign .login-lead {
    font-size: 14px;
  }
  #gate.duLoginDesign .duEntryHelp {
    font-size: 13px;
  }
  #gate.duLoginDesign .duPasskeyCaption,
  #gate.duLoginDesign .duAuthDivider {
    font-size: 13px;
  }
  #gate.duLoginDesign .duLoginFooter {
    font-size: 13px;
  }
  #gate.duLoginDesign.duCodeOpen .duAuthReady > .duAuthHelp.duStuHelp {
    display: block;
  }
  #gate.duLoginDesign.duStuLogin .duWelcomeBody {
    justify-content: flex-start;
    padding-top: 8px;
  }
}
@media (max-width: 900px) and (max-height: 660px) {
  #gate.duLoginDesign .duVisual {
    height: 120px;
  }
  #gate.duLoginDesign .duVisual .login-scene {
    transform: scale(0.36);
  }
}
/* الوضع الداكن لصفحة دخول الطالب والتسجيل */
html[data-theme="dark"] #gate.lab {
  background: #0a231d;
  color: #e5f4ec;
}
html[data-theme="dark"] #gate.lab .gate-box {
  background: #102e25;
  border-color: #36594a;
  color: #e5f4ec;
}
html[data-theme="dark"] #gate.lab .duHeader b,
html[data-theme="dark"] #gate.duLoginDesign .duStudentBack,
html[data-theme="dark"] #gate.duLoginDesign #gForgot,
html[data-theme="dark"] #gate.duLoginDesign .duAboutLink,
html[data-theme="dark"] #gate.duLoginDesign .duTeacherFootLink,
html[data-theme="dark"] #gate.duLoginDesign .duCodeLabel,
html[data-theme="dark"] #gate.duLoginDesign .duCodeCount {
  color: #98ddbd;
}
html[data-theme="dark"] #gate.lab .login-title,
html[data-theme="dark"] #gate.lab .login-question,
html[data-theme="dark"] #gate.lab .duFieldLabel {
  color: #e5f4ec;
}
html[data-theme="dark"] #gate.lab .login-lead,
html[data-theme="dark"] #gate.lab .login-hint,
html[data-theme="dark"] #gate.lab #gStepT,
html[data-theme="dark"] #gate.duLoginDesign .duEntryHelp,
html[data-theme="dark"] #gate.duLoginDesign .duPasskeyCaption,
html[data-theme="dark"] #gate.duLoginDesign .duAuthDivider,
html[data-theme="dark"] #gate.duLoginDesign .duAuthHelp,
html[data-theme="dark"] #gate.duLoginDesign .duCodeHint {
  color: #b2ccbe;
}
html[data-theme="dark"] #gate.duLoginDesign .duAuthDivider::before,
html[data-theme="dark"] #gate.duLoginDesign .duAuthDivider::after {
  background: #36594a;
}
html[data-theme="dark"] #gate.duLoginDesign .duAuthAction {
  background: #193d30;
  color: #98ddbd;
  border-color: #98ddbd;
}
html[data-theme="dark"] #gate.duLoginDesign .duAuthAction.duEntryPrimary,
html[data-theme="dark"] #gate.duLoginDesign .duAuthAction.duAuthPrimary,
html[data-theme="dark"] #gate.lab .login-next {
  background: #98ddbd;
  color: #10372d;
}
html[data-theme="dark"] #gate.duLoginDesign #gCode,
html[data-theme="dark"] #gate.lab #gName {
  background: #193d30;
  color: #e5f4ec;
  border-color: #98ddbd;
}
html[data-theme="dark"] #gate.lab .login-tiles button,
html[data-theme="dark"] #gate.lab .login-back,
html[data-theme="dark"] #gate.lab .login-bubble {
  background: #193d30;
  color: #e5f4ec;
  border-color: #36594a;
}
html[data-theme="dark"] #gate.lab .login-tiles button[aria-pressed="true"] {
  background: #98ddbd;
  border-color: #98ddbd;
  color: #10372d;
}
html[data-theme="dark"] #gate.lab .login-step-dots i {
  background: #36594a;
}
html[data-theme="dark"] #gate.lab .login-sheet {
  background: #102e25;
  color: #e5f4ec;
}
html[data-theme="dark"] #gate.duLoginDesign .duLoginFooter {
  background: #15372b;
  color: #b2ccbe;
  border-color: #36594a;
}
html[data-theme="dark"] #gate.lab .login-scene .bg circle:first-child {
  fill: #173f34;
}
html[data-theme="dark"] #gate.lab .login-scene .bg circle + circle {
  stroke: #2a5a4a;
}
html[data-theme="dark"] #gate.lab .duEyebrow,
html[data-theme="dark"] #gate.lab .duCaption strong {
  color: #98ddbd;
}
html[data-theme="dark"] #gate.lab .duCaption {
  color: #b2ccbe;
}
html[data-theme="dark"] #gate.lab .login-scene [stroke="#0D4F3C"] {
  stroke: #98ddbd;
}
/* ٦ نوفمبر: «ادخل ببصمتك» في أول شاشة — رابط هادي تحت الزرين */
.duPkQuick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  margin-top: 4px;
  background: transparent;
  border: 0;
  color: inherit;
  font: 600 15px "IBM Plex Sans Arabic", sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
}
.duPkQuick .duAuthIcon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}
.duPkQuick .duAuthIcon svg {
  width: 20px;
  height: 20px;
}
