:root {
  --login-navy-950: #213c82;
  --login-navy-800: #294b94;
  --login-navy-700: #365ba7;
  --login-navy-600: #456bb4;
  --login-gold-500: #93bd4d;
  --login-gold-300: #cfe49b;
  --login-cream-50: #fbfcf7;
  --login-sky-50: #edf3f8;
  --login-ink-900: #172746;
  --login-ink-400: #66748b;
  --login-coral: #7cab3c;
  --login-display: "Baloo 2", system-ui, sans-serif;
  --login-body: "Nunito Sans", system-ui, sans-serif;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 15% 10%, #e0e8f8 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, #cce8aa 0%, transparent 42%),
    var(--login-sky-50);
  color: var(--login-ink-900);
  font-family: var(--login-body);
}

.dn-login-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: var(--login-cream-50);
  box-shadow: 0 30px 70px -25px rgba(10, 20, 64, .35), 0 8px 24px -8px rgba(10, 20, 64, .18);
}

.dn-login-panel {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 44px 40px 36px;
  background:
    radial-gradient(92% 68% at 103% 100%, rgba(169, 205, 83, .62) 0%, transparent 68%),
    radial-gradient(120% 90% at 20% -10%, #4e6fb4 0%, transparent 55%),
    linear-gradient(160deg, #213c82 0%, #294b94 55%, #3e64ad 100%);
}

.dn-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dn-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: .8;
  animation: dn-twinkle 3.2s ease-in-out infinite;
}

.dn-shooting-star {
  position: absolute;
  top: 14%;
  left: -10%;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--login-gold-300) 40%, #fff 100%);
  filter: drop-shadow(0 0 6px var(--login-gold-300));
  animation: dn-shoot 6s cubic-bezier(.3, .6, .3, 1) infinite 1.2s;
}

.dn-shooting-star::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px var(--login-gold-300);
}

@keyframes dn-twinkle {
  0%, 100% { opacity: .15; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes dn-shoot {
  0% { transform: translate(0, 0) rotate(18deg); opacity: 0; }
  6% { opacity: 1; }
  30%, 100% { transform: translate(340px, 140px) rotate(18deg); opacity: 0; }
}

.dn-brand,
.dn-panel-head,
.dn-chips,
.dn-panel-foot {
  position: relative;
  z-index: 2;
}

.dn-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dn-brand-logo {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .35);
}

.top-brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.school-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.school-logo-thumb {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #e3e6ed;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

.assignment-class-list {
  display: grid;
  gap: 10px;
}

.assignment-class-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #e3e6ed;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.assignment-class-option:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.assignment-class-option input {
  margin-top: 3px;
}

.assignment-class-option small {
  display: block;
  margin-top: 3px;
  color: #697181;
  font-weight: 400;
}

.dn-brand-word {
  color: #fff;
  font-family: var(--login-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
}

.dn-brand-sub {
  margin-top: 2px;
  color: #d2ead0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.dn-panel-head { margin-top: 46px; }

.dn-panel-head h1 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--login-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.28;
}

.dn-panel-head h1 span { color: var(--login-gold-300); }

.dn-panel-head p {
  max-width: 34ch;
  margin: 0;
  color: #e0f0d9;
  font-size: 14.5px;
  line-height: 1.55;
}

.dn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.dn-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(210, 239, 163, .52);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 88, 160, .38), rgba(143, 189, 73, .34));
  color: #f1fae9;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(3px);
}

.dn-chip i,
.dn-eyebrow i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
}

.dn-chip i { background: var(--login-gold-500); }

.dn-panel-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 40px;
}

.dn-panel-foot p {
  margin: 0;
  color: #d3e5d2;
  font-size: 12.5px;
  line-height: 1.5;
}

.dn-contact-details {
  display: grid;
  gap: 9px;
}

.dn-contact-details p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.dn-contact-details i {
  width: 18px;
  margin-top: 1px;
  color: var(--login-gold-300);
  font-size: 13px;
  text-align: center;
}

.dn-contact-details a {
  color: #e3f4d1;
  text-decoration: none;
}

.dn-contact-details a:hover { color: #fff; text-decoration: underline; }

.dn-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 44px 36px;
  background:
    radial-gradient(circle at 100% 100%, rgba(147, 189, 77, .11), transparent 33%),
    var(--login-cream-50);
}

.dn-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #edf6df;
  color: #527f2c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
}

.dn-eyebrow i { background: var(--login-coral); }

.dn-form-side h2 {
  margin: 0 0 6px;
  color: var(--login-ink-900);
  font-family: var(--login-display);
  font-size: 30px;
  font-weight: 700;
}

.dn-lede {
  margin: 0 0 22px;
  color: var(--login-ink-400);
  font-size: 14.5px;
}

.dn-field { margin-bottom: 16px; }

.dn-form-side label {
  display: block;
  margin-bottom: 7px;
  color: var(--login-ink-900);
  font-size: 13px;
  font-weight: 800;
}

.dn-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dn-input-wrap input,
.dn-form-side #studentRegisterForm .form-control,
.dn-form-side #studentRegisterForm .form-select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e4e7f4;
  border-radius: 12px;
  background: #fff;
  color: var(--login-ink-900);
  font-family: var(--login-body);
  font-size: 14.5px;
  outline: none;
}

.dn-input-wrap input {
  padding: 12.5px 42px;
}

.dn-input-wrap input:focus,
.dn-form-side #studentRegisterForm .form-control:focus,
.dn-form-side #studentRegisterForm .form-select:focus {
  border-color: var(--login-navy-600);
  box-shadow: 0 0 0 4px rgba(37, 64, 154, .12);
}

.dn-input-wrap input::placeholder,
.dn-form-side #studentRegisterForm input::placeholder {
  color: #b3b8d1;
}

.dn-input-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  color: #9ba1c4;
  font-size: 17px;
}

.dn-password-toggle {
  position: absolute;
  right: 12px;
  display: flex;
  padding: 4px;
  border: 0;
  background: none;
  color: #9ba1c4;
}

.dn-password-toggle:hover { color: var(--login-navy-600); }

.dn-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 18px;
}

.dn-forgot-row a {
  color: var(--login-navy-600);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.dn-forgot-row a:hover { text-decoration: underline; }

.dn-submit {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #294b94 0%, #3d68a8 44%, #7eae3f 100%);
  color: #fff;
  font-family: var(--login-display);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 12px 24px -10px rgba(39, 79, 139, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}

.dn-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #213c82 0%, #31599f 42%, #6f9f36 100%);
  box-shadow: 0 16px 28px -10px rgba(39, 79, 139, .5);
}

.dn-submit:focus-visible {
  outline: 3px solid var(--login-gold-500);
  outline-offset: 2px;
}

.dn-create-link {
  margin: 18px 0 0;
  color: var(--login-ink-400);
  font-size: 13.5px;
  text-align: center;
}

.dn-create-link button,
.dn-back-link {
  border: 0;
  background: none;
  color: #669c39;
  font-weight: 800;
}

.dn-create-link button:hover,
.dn-back-link:hover { text-decoration: underline; }

.dn-back-link {
  width: 100%;
  margin-top: 12px;
  color: var(--login-navy-600);
  font-size: 13px;
}

.dn-form-side #loginError:empty {
  display: none;
}

.dn-form-side #loginError {
  margin-bottom: 14px;
  font-size: 13px;
}

#studentRegisterForm {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .dn-star,
  .dn-shooting-star { animation: none; }
}

@media (max-width: 820px) {
  .login-screen { align-items: flex-start; padding: 20px 14px; }
  .dn-login-card { grid-template-columns: 1fr; }
  .dn-login-panel { min-height: auto; padding: 32px 28px 28px; }
  .dn-panel-head { margin-top: 28px; }
  .dn-panel-foot { padding-top: 24px; }
  .dn-form-side { padding: 34px 28px 30px; }
}

@media (max-width: 480px) {
  .dn-login-panel { padding: 26px 22px; }
  .dn-panel-head h1 { font-size: 25px; }
  .dn-form-side { padding: 30px 22px; }
}

/* Prisht Education emerald login */
:root {
  --login-forest: #005246;
  --login-forest-deep: #003f37;
  --login-emerald: #059669;
  --login-lime: #79d52f;
  --login-mint: #e9f7ef;
  --login-ink: #071638;
}

.login-screen {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 16px 24px;
  background:
    radial-gradient(circle at 88% 8%,rgba(194,235,205,.72) 0 12%,transparent 30%),
    radial-gradient(circle at 4% 88%,rgba(207,233,245,.74) 0 13%,transparent 34%),
    linear-gradient(135deg,#f5fbff 0%,#eff8f5 100%);
}

.login-screen::before,
.login-screen::after {
  position: absolute;
  z-index: -1;
  color: rgba(35,115,111,.13);
  font-family: bootstrap-icons;
  font-size: clamp(86px,10vw,165px);
  line-height: 1;
}

.login-screen::before { content: "\f194"; left: 2%; top: 6%; transform: rotate(-12deg); }
.login-screen::after { content: "\f2e7"; right: 3%; bottom: 4%; transform: rotate(8deg); }

.dn-login-card {
  width: min(1350px,calc(100vw - 48px));
  max-width: 1350px;
  height: min(720px,calc(100dvh - 32px));
  min-height: min(600px,calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  grid-template-columns: minmax(0,59%) minmax(420px,41%);
  border: 1px solid rgba(213,231,223,.85);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 65px -30px rgba(8,58,54,.38),0 12px 28px -16px rgba(5,50,46,.2);
}

.dn-login-panel {
  height: 100%;
  min-height: 100%;
  padding: clamp(32px,3.2vw,52px) clamp(32px,3.4vw,56px) 40px;
  background:
    linear-gradient(90deg,rgba(0,72,61,.96) 0%,rgba(0,78,67,.93) 46%,rgba(0,72,61,.42) 78%,rgba(0,62,53,.12) 100%),
    linear-gradient(180deg,transparent 65%,rgba(0,54,47,.35)),
    url("../images/school-dashboard-hero.png") 66% center/cover no-repeat;
}

.dn-stars,
.dn-shooting-star { display: none; }

.dn-brand { gap: 17px; }
.dn-brand-logo {
  width: 76px;
  height: 76px;
  padding: 7px;
  border-radius: 17px;
  box-shadow: 0 9px 25px rgba(0,33,28,.22);
}
.dn-brand-word { font-size: clamp(24px,2vw,34px); font-weight: 900; letter-spacing: -.7px; }
.dn-brand-sub { margin-top: 4px; color: #c9e9df; font-size: 16px; }

.dn-panel-head { margin-top: clamp(54px,8vh,94px); }
.dn-panel-head h1 {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(34px,3vw,51px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.1px;
}
.dn-panel-head h1 span { position: relative; color: #86e232; }
.dn-panel-head h1 span::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 5%;
  bottom: -14px;
  height: 5px;
  border-radius: 50%;
  background: #ffc019;
  transform: rotate(-1deg);
}
.dn-panel-head p { max-width: 40ch; color: rgba(255,255,255,.92); font-size: clamp(15px,1.2vw,19px); line-height: 1.48; }
.dn-panel-handwriting {
  position: absolute;
  z-index: 2;
  right: 13%;
  top: 42%;
  color: #fff;
  font-family: "Comic Sans MS",cursive;
  font-size: clamp(20px,1.8vw,30px);
  font-weight: 700;
  line-height: 1.16;
  transform: rotate(-10deg);
  text-shadow: 0 2px 8px rgba(0,38,32,.36);
}
.dn-panel-handwriting::after { content: ""; display: block; width: 90px; margin: 8px 0 0 18px; border-bottom: 5px solid #ffc019; transform: rotate(-9deg); }

.dn-chips { max-width: 520px; gap: 12px; margin-top: 36px; }
.dn-chip {
  gap: 9px;
  padding: 11px 18px;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.11);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(10px);
}
.dn-chip:nth-child(1) i { background: #43e57a; }
.dn-chip:nth-child(2) i { background: #ffc11d; }
.dn-chip:nth-child(3) i { background: #d46bff; }
.dn-chip:nth-child(4) i { background: #ff6e76; }

.dn-panel-foot { gap: 14px; padding-top: 28px; }
.dn-panel-foot > i { color: #ffc523; font-size: 30px; }
.dn-panel-foot p { color: rgba(255,255,255,.78); font-size: 14px; }

.dn-form-side {
  height: 100%;
  min-height: 0;
  padding: clamp(38px,5vw,74px) clamp(42px,5.2vw,76px);
  background:
    radial-gradient(circle at 100% 100%,rgba(141,214,92,.1),transparent 38%),
    linear-gradient(145deg,#fff 0%,#fbfdfc 100%);
}
.dn-form-side > * { width: 100%; max-width: 470px; margin-inline: auto; }
.dn-eyebrow { margin-bottom: 24px; padding: 7px 14px; background: #e2f6dc; color: #16853c; font-size: 14px; }
.dn-eyebrow i { width: auto; height: auto; background: transparent; }
.dn-eyebrow i::before { content: "\f4e1"; font-family: bootstrap-icons; font-style: normal; font-size: 15px; }
.dn-form-side h2 { margin-bottom: 7px; color: var(--login-ink); font-size: clamp(37px,3.1vw,50px); font-weight: 900; letter-spacing: -1.4px; }
.login-intro h2 span { color: #168b43; }
.dn-lede { margin-bottom: 34px; color: #5f718e; font-size: 16px; }
.dn-field { margin-bottom: 21px; }
.dn-form-side label { margin-bottom: 9px; color: var(--login-ink); font-size: 15px; }
.dn-input-wrap input,
.dn-form-side #studentRegisterForm .form-control,
.dn-form-side #studentRegisterForm .form-select {
  min-height: 62px;
  border-color: #cad9ea;
  border-radius: 15px;
  background: #fff;
  font-size: 16px;
}
.dn-input-wrap input { padding: 15px 50px; }
.dn-input-icon { left: 19px; color: #172a50; font-size: 20px; }
.dn-password-toggle { right: 17px; color: #6380aa; font-size: 19px; }
.dn-input-wrap input:focus,
.dn-form-side #studentRegisterForm .form-control:focus,
.dn-form-side #studentRegisterForm .form-select:focus { border-color: #20a875; box-shadow: 0 0 0 4px rgba(5,150,105,.12); }
.dn-forgot-row { margin: -4px 0 24px; }
.dn-forgot-row a { color: #16853c; font-size: 14px; }
.dn-submit {
  min-height: 62px;
  border-radius: 14px;
  background: linear-gradient(100deg,#078b58 0%,#1b9b54 45%,#64c735 100%);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 14px 25px -13px rgba(14,139,80,.56);
}
.dn-submit:hover { background: linear-gradient(100deg,#047b4d 0%,#128e4b 48%,#53b82b 100%); box-shadow: 0 16px 28px -13px rgba(14,139,80,.62); }
.dn-create-link { margin-top: 25px; color: #6a7890; font-size: 15px; }
.dn-create-link button,.dn-back-link { color: #16853c; }
#studentRegisterForm { max-height: min(660px,calc(100dvh - 110px)); }

@media (min-width: 821px) and (max-height: 700px) {
  .dn-login-card { min-height: 0; }
  .dn-login-panel { padding-block: 28px; }
  .dn-brand-logo { width: 62px; height: 62px; }
  .dn-brand-word { font-size: 27px; }
  .dn-brand-sub { font-size: 13px; }
  .dn-panel-head { margin-top: 36px; }
  .dn-panel-head h1 { margin-bottom: 22px; font-size: 38px; }
  .dn-panel-head p { font-size: 15px; }
  .dn-chips { margin-top: 25px; }
  .dn-chip { padding: 8px 13px; font-size: 13px; }
  .dn-panel-foot { padding-top: 18px; }
  .dn-form-side { padding-block: 28px; }
  .dn-eyebrow { margin-bottom: 15px; }
  .dn-form-side h2 { font-size: 40px; }
  .dn-lede { margin-bottom: 22px; }
  .dn-field { margin-bottom: 14px; }
  .dn-input-wrap input { min-height: 54px; }
  .dn-forgot-row { margin-bottom: 16px; }
  .dn-submit { min-height: 54px; }
  .dn-create-link { margin-top: 16px; }
}

@media (max-width: 1050px) {
  .dn-login-card { grid-template-columns: minmax(0,54%) minmax(390px,46%); }
  .dn-panel-handwriting { display: none; }
  .dn-form-side { padding-inline: 38px; }
}

@media (max-width: 820px) {
  .login-screen { height: auto; min-height: 100dvh; overflow-y: auto; padding: 18px; }
  .dn-login-card { width: min(620px,100%); height: auto; min-height: 0; max-height: none; grid-template-columns: 1fr; border-radius: 25px; }
  .dn-login-panel { height: auto; min-height: 210px; padding: 25px 28px; background-position: 70% 58%; }
  .dn-brand-logo { width: 56px; height: 56px; }
  .dn-brand-word { font-size: 23px; }
  .dn-brand-sub { font-size: 12px; }
  .dn-panel-head { margin-top: 25px; }
  .dn-panel-head h1 { max-width: 390px; margin-bottom: 0; font-size: 29px; }
  .dn-panel-head h1 span::after { bottom: -8px; height: 3px; }
  .dn-panel-head p,.dn-chips,.dn-panel-foot { display: none; }
  .dn-form-side { height: auto; padding: 36px 32px 34px; }
  .dn-form-side h2 { font-size: 38px; }
}

@media (max-width: 480px) {
  .login-screen { padding: 10px; }
  .dn-login-card { border-radius: 20px; }
  .dn-login-panel { min-height: 165px; padding: 20px; }
  .dn-panel-head { margin-top: 18px; }
  .dn-panel-head h1 { font-size: 23px; }
  .dn-form-side { padding: 28px 20px 26px; }
  .dn-form-side h2 { font-size: 33px; }
  .dn-lede { margin-bottom: 25px; font-size: 14px; }
  .dn-input-wrap input,.dn-form-side #studentRegisterForm .form-control,.dn-form-side #studentRegisterForm .form-select { min-height: 54px; }
  .dn-submit { min-height: 54px; }
}

/* V3: full classroom hero login */
.login-screen {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  padding: clamp(24px,3.2vh,42px) clamp(38px,5.6vw,106px);
  background:
    linear-gradient(90deg,rgba(248,252,255,.96) 0%,rgba(248,252,255,.86) 27%,rgba(248,252,255,.04) 53%,rgba(241,249,247,.2) 100%),
    url("../images/prisht-login-classroom-v2.png") center/cover no-repeat;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(202,231,248,.45);
  font-size: 0;
}
.login-screen::before { left: -165px; top: -125px; }
.login-screen::after { right: -105px; top: -95px; background: rgba(204,230,218,.42); }

.dn-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1640px;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(620px,1fr) minmax(430px,500px);
  gap: clamp(34px,4vw,76px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dn-login-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding: 0;
  background: transparent;
}

.dn-brand { gap: 14px; }
.dn-brand-logo {
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(20,69,88,.13);
}
.dn-brand-word { color: #071b49; font-size: clamp(24px,1.8vw,34px); font-weight: 950; letter-spacing: -.8px; }
.dn-brand-sub { color: #55739a; font-size: clamp(13px,1vw,17px); }

.dn-panel-head { width: min(510px,52%); margin-top: clamp(35px,6vh,64px); }
.dn-panel-head h1 {
  margin: 0 0 28px;
  color: #071b49;
  font-size: clamp(38px,3.05vw,56px);
  font-weight: 950;
  line-height: .99;
  letter-spacing: -1.7px;
}
.dn-panel-head h1 span { position: relative; color: #168c51; }
.dn-panel-head h1 span::after {
  left: 0;
  right: 36%;
  bottom: -15px;
  height: 4px;
  background: #ffc000;
  transform: rotate(-2deg);
}
.dn-panel-head p { max-width: 38ch; color: #49668f; font-size: clamp(14px,1.1vw,18px); line-height: 1.45; }

.dn-top-handwriting,
.dn-board-handwriting {
  position: absolute;
  color: #153e66;
  font-family: "Comic Sans MS",cursive;
  font-weight: 700;
  line-height: 1.18;
}
.dn-top-handwriting { left: 55%; top: 0; font-size: clamp(16px,1.55vw,26px); transform: rotate(-7deg); }
.dn-top-handwriting::after { content: ""; display: block; width: 145px; margin: 8px 0 0 90px; border-bottom: 4px solid #ffbc00; transform: rotate(-4deg); }
.dn-board-handwriting { left: 70%; top: 23%; color: rgba(255,255,255,.9); font-size: clamp(19px,1.55vw,28px); transform: rotate(-7deg); text-shadow: 0 2px 5px rgba(0,50,42,.18); }
.dn-board-handwriting::after { content: ""; display: block; width: 105px; margin: 9px 0 0 18px; border-bottom: 4px solid #69d852; transform: rotate(-7deg); }

.dn-floating-benefits { position: absolute; inset: 0; pointer-events: none; }
.dn-floating-benefits span {
  position: absolute;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 155px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  color: #0b234c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 10px 25px rgba(26,77,88,.13);
  backdrop-filter: blur(10px);
}
.dn-floating-benefits span i { grid-row: 1 / 3; color: #ffb900; font-size: 28px; }
.dn-floating-benefits span:nth-child(1) { left: 54%; top: 13%; transform: rotate(-6deg); }
.dn-floating-benefits span:nth-child(2) { left: 70%; top: 20%; transform: rotate(6deg); }
.dn-floating-benefits span:nth-child(2) i { color: #168bde; }
.dn-floating-benefits span:nth-child(3) { left: 58%; top: 31%; transform: rotate(-6deg); }
.dn-floating-benefits span:nth-child(3) i { color: #149c59; }

.dn-chips {
  position: absolute;
  left: 0;
  bottom: 18%;
  width: min(540px,56%);
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin: 0;
}
.dn-chip {
  min-width: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 12px 7px;
  border: 1px solid rgba(224,234,241,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  color: #0b214a;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 20px rgba(26,77,88,.1);
  backdrop-filter: blur(8px);
}
.dn-chip i { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 50%; background: #ffe4e9; color: #ff315f; font-size: 24px; }
.dn-chip:nth-child(2) i { background: #e1f2ff; color: #168de0; }
.dn-chip:nth-child(3) i { background: #ddf6e8; color: #139c57; }
.dn-chip:nth-child(4) i { background: #eee7ff; color: #7049df; }
.dn-chip b { font-weight: 900; }

.dn-audiences {
  position: absolute;
  left: 0;
  bottom: 3.5%;
  width: min(560px,59%);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.dn-audiences span { display: grid; grid-template-columns: 35px 1fr; column-gap: 8px; color: #10254d; }
.dn-audiences i { grid-row: 1 / 3; color: #ff7b12; font-size: 25px; }
.dn-audiences span:nth-child(2) i { color: #1876d2; }
.dn-audiences span:nth-child(3) i { color: #51be32; }
.dn-audiences b { font-size: 11px; }
.dn-audiences small { margin-top: 3px; color: #567398; font-size: 9px; line-height: 1.3; }

.dn-panel-foot { position: absolute; left: -3%; bottom: -1.5%; margin: 0; padding: 0; transform: rotate(-7deg); }
.dn-panel-foot p { color: #254b72; font-family: "Comic Sans MS",cursive; font-size: 14px; font-weight: 700; line-height: 1.2; }
.dn-panel-foot p::after { content: ""; display: block; width: 82px; margin: 6px 0 0 35px; border-bottom: 4px solid #ffc000; }

.dn-form-side {
  position: relative;
  align-self: center;
  width: 100%;
  height: min(730px,100%);
  min-height: 590px;
  justify-content: flex-start;
  padding: clamp(36px,5.4vh,58px) clamp(32px,3vw,44px) 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 20px 50px rgba(17,64,78,.16);
  backdrop-filter: blur(18px);
}
.dn-form-side > * { max-width: none; }
.dn-eyebrow { margin-bottom: 17px; padding: 6px 12px; background: #e2f7eb; color: #0d8b48; font-size: 13px; }
.dn-form-side h2 { margin-bottom: 5px; font-size: clamp(31px,2.2vw,40px); line-height: 1.05; letter-spacing: -1px; }
.dn-lede { margin-bottom: clamp(22px,3.2vh,31px); font-size: 14px; }
.dn-field { margin-bottom: 16px; }
.dn-form-side label { margin-bottom: 7px; font-size: 13px; }
.dn-input-wrap input,
.dn-form-side #studentRegisterForm .form-control,
.dn-form-side #studentRegisterForm .form-select { min-height: 54px; border-radius: 12px; font-size: 14px; }
.dn-input-wrap input { padding-block: 12px; }
.dn-forgot-row { margin: -4px 0 17px; }
.dn-forgot-row a { font-size: 12px; }
.dn-submit { min-height: 52px; border-radius: 12px; font-size: 16px; }
.dn-create-link { position: relative; z-index: 2; margin-top: 28px; padding-top: 18px; border-top: 1px solid #e5ece9; font-size: 13px; }
.dn-login-card-art { position: absolute; left: 38px; right: 38px; bottom: 25px; display: flex; align-items: end; justify-content: space-between; color: #2f5377; pointer-events: none; }
.dn-login-card-art > i { color: #e5efef; font-size: 92px; line-height: .8; }
.dn-login-card-art span { font-family: "Comic Sans MS",cursive; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; transform: rotate(-7deg); }
.dn-login-card-art span::after { content: ""; display: block; width: 72px; margin: 5px auto 0; border-bottom: 3px solid #ffc000; }
#studentRegisterForm { position: relative; z-index: 3; max-height: 100%; padding-right: 5px; }
#studentRegisterForm + .dn-login-card-art { display: none; }

@media (max-width: 1260px) {
  .login-screen { padding-inline: 38px; }
  .dn-login-card { grid-template-columns: minmax(560px,1fr) minmax(400px,455px); gap: 28px; }
  .dn-panel-head { width: 54%; }
  .dn-panel-head h1 { font-size: 41px; }
  .dn-floating-benefits span:nth-child(2),.dn-board-handwriting { display: none; }
  .dn-chips { width: 55%; }
}

@media (max-width: 1020px) {
  .login-screen { min-height: 680px; padding: 24px; }
  .dn-login-card { grid-template-columns: minmax(430px,1fr) minmax(380px,430px); gap: 22px; }
  .dn-panel-head { width: 65%; }
  .dn-panel-head h1 { font-size: 37px; }
  .dn-panel-head p { font-size: 14px; }
  .dn-floating-benefits,.dn-board-handwriting,.dn-top-handwriting { display: none; }
  .dn-chips { width: 68%; }
  .dn-audiences { width: 70%; }
}

@media (max-width: 820px) {
  .login-screen {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 18px;
    background:
      linear-gradient(180deg,rgba(248,252,255,.94) 0%,rgba(248,252,255,.86) 35%,rgba(239,248,245,.72) 100%),
      url("../images/prisht-login-classroom-v2.png") 49% center/cover fixed;
  }
  .dn-login-card { height: auto; grid-template-columns: 1fr; gap: 20px; }
  .dn-login-panel { min-height: 360px; padding: 0; }
  .dn-brand-logo { width: 56px; height: 56px; }
  .dn-panel-head { width: min(440px,88%); margin-top: 32px; }
  .dn-panel-head h1 { font-size: clamp(32px,7vw,42px); }
  .dn-panel-head p { display: block; font-size: 14px; }
  .dn-chips { position: static; width: min(520px,100%); margin-top: 25px; }
  .dn-chip { min-height: 88px; }
  .dn-chip i { width: 39px; height: 39px; font-size: 19px; }
  .dn-audiences,.dn-panel-foot { display: none; }
  .dn-form-side { width: min(540px,100%); height: auto; min-height: 610px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .login-screen { padding: 10px; }
  .dn-login-panel { min-height: 315px; }
  .dn-brand-word { font-size: 21px; }
  .dn-brand-sub { font-size: 12px; }
  .dn-panel-head { margin-top: 24px; }
  .dn-panel-head h1 { margin-bottom: 20px; font-size: 30px; }
  .dn-panel-head p { font-size: 13px; }
  .dn-chips { grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 18px; }
  .dn-chip { min-height: 75px; padding: 7px 3px; border-radius: 11px; font-size: 9px; }
  .dn-chip i { width: 32px; height: 32px; font-size: 15px; }
  .dn-form-side { min-height: 590px; padding: 30px 20px 24px; border-radius: 18px; }
  .dn-login-card-art { left: 22px; right: 22px; }
  .dn-login-card-art > i { font-size: 72px; }
}

@media (min-width: 821px) and (max-height: 700px) {
  .login-screen { min-height: 560px; padding-block: 16px; }
  .dn-brand-logo { width: 54px; height: 54px; }
  .dn-brand-word { font-size: 25px; }
  .dn-panel-head { margin-top: 25px; }
  .dn-panel-head h1 { margin-bottom: 19px; font-size: 36px; }
  .dn-panel-head p { font-size: 13px; }
  .dn-chips { bottom: 17%; }
  .dn-chip { min-height: 91px; }
  .dn-chip i { width: 38px; height: 38px; font-size: 18px; }
  .dn-form-side { min-height: 0; padding-block: 24px; }
  .dn-eyebrow { margin-bottom: 10px; }
  .dn-lede { margin-bottom: 17px; }
  .dn-field { margin-bottom: 11px; }
  .dn-input-wrap input { min-height: 48px; }
  .dn-forgot-row { margin-bottom: 12px; }
  .dn-submit { min-height: 48px; }
  .dn-create-link { margin-top: 16px; padding-top: 13px; }
  .dn-login-card-art { bottom: 13px; }
  .dn-login-card-art > i { font-size: 68px; }
}
