/* Giriş — buz ejder çerçevesi teması (spritesheet + form deliği) */

html:not(.nova-has-session),
html:not(.nova-has-session) body,
html:not(.nova-has-session) #student-selection-screen.nova-login-arena {
  background: #071428 !important;
  overflow: hidden !important;
}

#student-selection-screen.nova-login-arena.nova-login-ice {
  --nl-ice: #9fd8ff;
  --nl-ice-deep: #0b3a5c;
  --nl-ice-ink: #eaf6ff;
  --nl-ice-muted: #9ebfd6;
  --nl-ice-panel: rgba(8, 28, 52, 0.55);
  --nl-ice-border: rgba(160, 220, 255, 0.35);
  --nl-ice-sun: #ffe08a;
  font-family: "Comfortaa", sans-serif !important;
  color: var(--nl-ice-ink) !important;
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(80, 160, 220, 0.28) 0%, transparent 58%),
    linear-gradient(180deg, #0a1c34 0%, #071428 55%, #04101f 100%) !important;
  animation: none !important;
  overflow: hidden !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__bg {
  display: none !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding:
    max(6px, env(safe-area-inset-top))
    6px
    max(6px, env(safe-area-inset-bottom)) !important;
  gap: 2px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Marka: ejderhanın ÜSTÜNDE, büyük */
#student-selection-screen.nova-login-ice .nova-login-ice__brand {
  flex: 0 0 auto !important;
  gap: 2px !important;
  padding: 0 8px 2px !important;
  text-align: center !important;
  align-items: center !important;
  z-index: 3;
  width: 100%;
  max-width: 520px;
}

#student-selection-screen.nova-login-ice .nova-login-arena__brand-badge {
  background: rgba(120, 190, 240, 0.18) !important;
  border: 1px solid rgba(180, 230, 255, 0.4) !important;
  color: #eaf7ff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font-size: clamp(10px, 2.8vw, 13px) !important;
  letter-spacing: 0.05em !important;
  padding: 5px 14px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__title {
  font-size: clamp(44px, 12.5vw, 68px) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.015em !important;
  color: #f2fbff !important;
  -webkit-text-fill-color: #f2fbff !important;
  background: none !important;
  filter: none !important;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.18),
    0 6px 22px rgba(70, 170, 255, 0.45) !important;
  margin: 0 !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__title-accent,
#student-selection-screen.nova-login-ice .nova-login-arena__title-x {
  color: #ffe29a !important;
  -webkit-text-fill-color: #ffe29a !important;
  text-shadow:
    0 0 18px rgba(255, 210, 120, 0.55),
    0 3px 14px rgba(255, 170, 60, 0.35) !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__tagline {
  display: none !important;
}

/* Çerçeve: kalan yüksekliğe göre büyü, kaydırma yok */
.nova-login-ice__stage {
  position: relative;
  flex: 1 1 auto;
  width: min(98vw, 480px, calc((100dvh - 7.5rem) * 360 / 608));
  max-height: calc(100dvh - 7.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  aspect-ratio: 360 / 608;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
}

.nova-login-ice__canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.nova-login-ice__slot {
  position: absolute;
  left: max(22%, calc(var(--nl-ice-hole-left, 25%) - 1%));
  top: max(41%, calc(var(--nl-ice-hole-top, 44%) - 1.5%));
  right: max(22%, calc(var(--nl-ice-hole-right, 25%) - 1%));
  bottom: max(10%, calc(var(--nl-ice-hole-bottom, 13%) - 1%));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 4px 6px;
  overflow: hidden !important;
  pointer-events: auto;
  box-sizing: border-box;
}

#student-selection-screen.nova-login-ice .nova-login-arena__panel.card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  justify-content: center !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__panel::before {
  display: none !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin: 0 0 4px !important;
  flex: 0 0 auto !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__panel-header h2 {
  color: #e8f6ff !important;
  font-size: clamp(15px, 4vw, 18px) !important;
  margin: 0 !important;
  font-weight: 800 !important;
}

#student-selection-screen.nova-login-ice .nova-login-arena__panel-header h2 span {
  display: none !important;
}

#student-selection-screen.nova-login-ice .register-link {
  border: 1px solid rgba(180, 230, 255, 0.45) !important;
  background: rgba(100, 180, 230, 0.22) !important;
  color: #eaf7ff !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font-size: clamp(12px, 3.2vw, 14px) !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

#student-selection-screen.nova-login-ice form {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  min-height: 0 !important;
  flex: 0 1 auto !important;
}

#student-selection-screen.nova-login-ice .row {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

#student-selection-screen.nova-login-ice .field {
  background: rgba(6, 24, 44, 0.78) !important;
  border: 1.5px solid rgba(150, 210, 250, 0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  border-radius: 12px !important;
  padding: 9px 11px !important;
  gap: 8px !important;
}

#student-selection-screen.nova-login-ice .field:focus-within {
  border-color: rgba(180, 230, 255, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(100, 190, 255, 0.22) !important;
}

#student-selection-screen.nova-login-ice input,
#student-selection-screen.nova-login-ice select {
  color: #f2fbff !important;
  background: transparent !important;
  font-size: clamp(14px, 3.8vw, 16px) !important;
}

#student-selection-screen.nova-login-ice input::placeholder {
  color: rgba(180, 210, 230, 0.55) !important;
}

#student-selection-screen.nova-login-ice .ico {
  font-size: 16px !important;
}

#student-selection-screen.nova-login-ice .actions {
  margin: 0 !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

#student-selection-screen.nova-login-ice .muted,
#student-selection-screen.nova-login-ice .link {
  color: var(--nl-ice-muted) !important;
  font-size: clamp(11px, 3vw, 13px) !important;
}

#student-selection-screen.nova-login-ice .cta {
  background: linear-gradient(180deg, #b8e8ff 0%, #5eb0e8 48%, #3a8fc8 100%) !important;
  color: #06253a !important;
  border: none !important;
  box-shadow: 0 4px 0 #2a6f9a !important;
  text-shadow: none !important;
  filter: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  margin-top: 2px !important;
  padding: 11px 14px !important;
  font-size: clamp(14px, 3.8vw, 16px) !important;
}

#student-selection-screen.nova-login-ice .cta:disabled {
  opacity: 0.5 !important;
  box-shadow: 0 3px 0 #3a6f8e !important;
}

#student-selection-screen.nova-login-ice .error {
  color: #ff8f9a !important;
  font-size: 12px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

#student-selection-screen.nova-login-ice .helper {
  display: none !important;
}

/* Kayıt modalı — buz teması */
html:not(.nova-has-session) .nova-register-overlay.registration-overlay {
  background: rgba(4, 16, 32, 0.72) !important;
}
html:not(.nova-has-session) .nova-register-card.registration-content {
  background: linear-gradient(180deg, #0d2744 0%, #0a1c34 100%) !important;
  border: 2px solid rgba(150, 210, 250, 0.35) !important;
  color: #eaf6ff !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}
html:not(.nova-has-session) .nova-register-badge {
  background: rgba(100, 180, 230, 0.16) !important;
  border-color: rgba(180, 230, 255, 0.35) !important;
  color: #d7f0ff !important;
}
html:not(.nova-has-session) .nova-register-header h2,
html:not(.nova-has-session) #registerModalTitle {
  color: #f2fbff !important;
  -webkit-text-fill-color: #f2fbff !important;
}
html:not(.nova-has-session) .nova-register-header .registration-subtitle,
html:not(.nova-has-session) .registration-tip {
  color: #9ebfd6 !important;
}
html:not(.nova-has-session) .nova-register-control {
  background: rgba(6, 24, 44, 0.72) !important;
  border: 1.5px solid rgba(150, 210, 250, 0.35) !important;
}
html:not(.nova-has-session) .nova-register-label,
html:not(.nova-has-session) .registration-form .registration-input {
  color: #eaf6ff !important;
}
html:not(.nova-has-session) .nova-register-submit {
  background: linear-gradient(180deg, #b8e8ff 0%, #5eb0e8 48%, #3a8fc8 100%) !important;
  color: #06253a !important;
  box-shadow: 0 5px 0 #2a6f9a !important;
}
html:not(.nova-has-session) .nova-register-close {
  background: rgba(100, 180, 230, 0.14) !important;
  border-color: rgba(180, 230, 255, 0.35) !important;
  color: #eaf6ff !important;
}

@media (max-height: 720px) {
  #student-selection-screen.nova-login-ice .nova-login-arena__title {
    font-size: clamp(34px, 9.5vw, 48px) !important;
  }
  #student-selection-screen.nova-login-ice .nova-login-arena__brand-badge {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .nova-login-ice__stage {
    width: min(98vw, 480px, calc((100dvh - 6.2rem) * 360 / 608));
    max-height: calc(100dvh - 6.2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  #student-selection-screen.nova-login-ice .field {
    padding: 7px 10px !important;
  }
  #student-selection-screen.nova-login-ice .cta {
    padding: 9px 12px !important;
  }
  #student-selection-screen.nova-login-ice .link {
    display: none !important;
  }
}

@media (min-width: 900px) {
  .nova-login-ice__stage {
    width: min(100%, 500px, calc((100dvh - 8rem) * 360 / 608));
  }
  #student-selection-screen.nova-login-ice .nova-login-arena__title {
    font-size: 64px !important;
  }
}

/* 118 mobil kurallarını ez — marka büyük kalsın, kaydırma olmasın */
@media (max-width: 900px) {
  html:not(.nova-has-session) #student-selection-screen.nova-login-ice .nova-login-arena__shell {
    gap: 2px !important;
    padding:
      max(6px, env(safe-area-inset-top))
      6px
      max(6px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }
  html:not(.nova-has-session) #student-selection-screen.nova-login-ice .nova-login-ice__brand {
    gap: 2px !important;
    padding: 0 6px 2px !important;
  }
  html:not(.nova-has-session) #student-selection-screen.nova-login-ice .nova-login-arena__brand-badge {
    font-size: clamp(11px, 3.2vw, 14px) !important;
    padding: 5px 12px !important;
  }
  html:not(.nova-has-session) #student-selection-screen.nova-login-ice .nova-login-arena__title {
    font-size: clamp(40px, 11.5vw, 58px) !important;
    line-height: 0.95 !important;
    filter: none !important;
    text-shadow: 0 3px 16px rgba(80, 180, 255, 0.4) !important;
  }
  html:not(.nova-has-session) #student-selection-screen.nova-login-ice .nova-login-arena__panel.card {
    padding: 0 !important;
    gap: 6px !important;
    border-radius: 0 !important;
  }
}

/* Giriş boot — ejderha + form oturana kadar */
.nova-login-boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(80, 160, 220, 0.35) 0%, transparent 58%),
    linear-gradient(180deg, #0a1c34 0%, #071428 55%, #04101f 100%);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.26s ease;
}
.nova-login-boot.is-open {
  display: flex;
}
.nova-login-boot.is-leaving {
  opacity: 0;
  pointer-events: none;
}
.nova-login-boot__orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, #9be7ff 28%, #2a8fc4 70%, #0a3a55 100%);
  box-shadow: 0 0 22px rgba(100, 210, 255, 0.55);
  animation: novaLoginBootPulse 1.35s ease-in-out infinite;
}
.nova-login-boot__title {
  margin: 0;
  font-family: "Comfortaa", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #eaf7ff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(120, 210, 255, 0.45);
}
.nova-login-boot__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(210, 235, 250, 0.82);
}
.nova-login-boot__bar {
  width: min(180px, 56vw);
  height: 4px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.nova-login-boot__bar > i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ec8e0, #b8f0ff, #5ec8e0);
  animation: novaLoginBootBar 1.1s ease-in-out infinite;
}
@keyframes novaLoginBootPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}
@keyframes novaLoginBootBar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

html.nova-login-booting:not(.nova-has-session) #student-selection-screen .nova-login-ice__slot,
html.nova-login-booting:not(.nova-has-session) #student-selection-screen .nova-login-ice__brand {
  visibility: hidden;
  pointer-events: none;
}

