/* =========================================================
   EXTRACTED LIQUID-GLASS LOGIN CARD STYLES
   ========================================================= */
/* =========================================================
   LOGIN SECTION
   ========================================================= */

.login-section {

  width: 100%;

  max-width: 455px;

  animation: cardAppear 0.8s 0.1s ease both;
}

@keyframes cardAppear {

  from {
    opacity: 0;

    transform:
      translateY(25px) scale(0.98);
  }

  to {
    opacity: 1;

    transform:
      translateY(0) scale(1);
  }

}


/* =========================================================
   LIQUID GLASS LOGIN CARD
   DARK GLASS
   ========================================================= */

/* =========================================================
   LIQUID GLASS LOGIN CARD — matched to the first ZIP modal
   Solid mode below intentionally keeps its original styling.
   ========================================================= */
 .login-card {
  position: relative;
  width: 100%;
  padding: 20px 34px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.105),
    rgba(27, 20, 100, 0.18),
    rgba(255, 255, 255, 0.055));
  /* Keep this border identical at rest and on hover */
  border: 1px solid rgba(255, 255, 255, 0.705);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 0 55px rgba(27, 20, 100, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(25px) saturate(145%);
  -webkit-backdrop-filter: blur(25px) saturate(145%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Centered drag handle; adjusts contrast for the solid card too */
.login-card::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.login-card:not(.solid-mode):hover {
  /* Gentle inner glow, with exactly the same border as the resting state */
  border-color: rgba(255, 255, 255, 0.705);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 0 55px rgba(27, 20, 100, 0.15),
    inset 0 0 18px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.login-card.solid-mode::after {
  background: rgba(27, 20, 100, 0.42);
  box-shadow: none;
}

/* =========================================================
   GLASS SHINE
   ========================================================= */

.glass-shine {

  position: absolute;

  width: 300px;
  height: 300px;

  top: -190px;
  right: -120px;

  border-radius: 50%;

  background:
    radial-gradient(circle,
      rgba(255, 249, 166, 0.075),
      transparent 70%);

  pointer-events: none;
}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header {

  position: relative;

  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 18px;
}

.login-icon {

  width: 55px;
  height: 55px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 16px;

  color: #1b1464;

  background:
    linear-gradient(145deg,
      #ffe600,
      #fcf37a);

  border:
    1px solid rgba(255, 255, 255, 0.45);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.28),

    0 0 20px rgba(255, 230, 0, 0.10),

    inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

.login-icon i {
  font-size: 21px;
}

.login-header h2 {

  font-size: 24px;

  line-height: 1;

  font-weight: 700;

  color: #FFFFFF;

  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35);
}

.login-header p {

  margin-top: -10px;

  font-size: 16px;

  font-weight: 600;

  color: rgba(255, 249, 166, 0.82);
}


/* =========================================================
   PORTAL STATUS
   GREEN SUCCESS
   ========================================================= */

.portal-status {

  display: flex;

  align-items: center;

  gap: 11px;

  padding: 8px 14px;

  margin-bottom: 18px;

  border-radius: 14px;

  background:
    rgba(34, 197, 94, 0.08);

  border:
    1px solid rgba(34, 197, 94, 0.24);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transition: 0.3s ease;
}

.status-dot {

  width: 9px;
  height: 9px;

  border-radius: 50%;

  flex-shrink: 0;

  background: #35D46B;

  box-shadow:
    0 0 0 5px rgba(53, 212, 107, 0.11);

  animation: pulse 2s infinite;
}

@keyframes pulse {

  0% {
    box-shadow:
      0 0 0 0 rgba(53, 212, 107, 0.32);
  }

  70% {
    box-shadow:
      0 0 0 7px rgba(53, 212, 107, 0);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(53, 212, 107, 0);
  }

}

.status-text {

  flex: 1;
}

.status-text span {

  display: block;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 1px;

  color: rgba(255, 255, 255, 0.58);
}

.status-text strong {

  display: block;

  margin-top: 1px;

  font-size: 12px;

  color: #55E47D;

  font-weight: 700;
}

#statusIcon {

  color: #55E47D;

  font-size: 15px;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.input-group {

  margin-bottom: 12px;
}

.input-group label {

  display: flex;

  align-items: center;

  gap: 7px;

  margin-bottom: 7px;

  font-size: 11px;

  font-weight: 600;

  color: #FFFFFF;
}

.input-group label i {

  color: #fcf5b7;
}


/* =========================================================
   INPUT BOX
   DARK LIQUID GLASS
   ========================================================= */

.input-box {

  position: relative;

  display: flex;

  align-items: center;
}

.input-box>i {

  position: absolute;

  left: 15px;

  color: rgba(255, 249, 166, 0.72);

  font-size: 13px;

  pointer-events: none;

  z-index: 2;
}

.input-box input {

  width: 100%;

  height: 52px;

  padding:
    0 46px 0 43px;

  border:
    1px solid rgba(255, 255, 255, 0.35);

  outline: none;

  border-radius: 13px;

  background:
    rgba(255, 255, 255, 0.16);

  color: #FFFFFF;

  font-family: 'Poppins', sans-serif;

  font-size: 12px;

  transition: 0.25s ease;

  backdrop-filter: blur(10px);
}

.input-box input::placeholder {

  color:
    rgba(255, 255, 255, 0.42);
}

.input-box input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  outline: none;
}

.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus,
.input-box input:-webkit-autofill:active {

  -webkit-text-fill-color: #FFFFFF !important;

  -webkit-box-shadow:
    0 0 0 1000px rgba(30, 25, 75, 0.65) inset !important;

  box-shadow:
    0 0 0 1000px rgba(30, 25, 75, 0.65) inset !important;

  caret-color: #FFFFFF !important;

  background: transparent !important;

  transition:
    background-color 9999s ease-in-out 0s;
}



/* =========================================================
   PASSWORD BUTTON
   ========================================================= */

.password-toggle {

  position: absolute;

  right: 12px;

  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: none;

  border-radius: 8px;

  background: transparent;

  color:
    rgba(255, 255, 255, 0.52);

  cursor: pointer;

  transition: 0.2s ease;
}

.password-toggle:hover {

  color: #ffe600;

  background:
    rgba(255, 230, 0, 0.07);
}


/* =========================================================
   ERROR
   ========================================================= */

.error {

  display: block;

  min-height: 14px;

  margin-top: 4px;

  font-size: 9px;

  color: #FF8E8E;
}


/* =========================================================
   INVALID INPUT
   ========================================================= */

.input-box input.invalid {

  border-color:
    rgba(255, 70, 70, 0.70);

  background:
    rgba(255, 50, 50, 0.065);

  box-shadow:
    0 0 0 3px rgba(255, 70, 70, 0.085);
}


/* =========================================================
   LOGIN BUTTON
   YELLOW PRIMARY ACTION
   ========================================================= */

.login-button {

  position: relative;

  width: 100%;

  height: 52px;

  margin-top: 2px;

  border: none;

  border-radius: 14px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  cursor: pointer;

  overflow: hidden;

  color: #1b1464;

  font-family: 'Poppins', sans-serif;

  font-size: 13px;

  font-weight: 700;

  background:
    linear-gradient(135deg,
      #f9ed49 0%,
      #ffe600 50%,
      #f9ed49 100%);

  border:
    1px solid rgba(255, 255, 255, 0.38);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.28),

    0 0 22px rgba(255, 230, 0, 0.10);

  transition: 0.3s ease;
}

.login-button:hover {

  transform: translateY(-2px);

  background:
    linear-gradient(135deg,
      #ffe600 0%,
      #f9ed49 50%,
      #ffe600 100%);

  box-shadow:
    0 17px 30px rgba(0, 0, 0, 0.34),

    0 0 28px rgba(255, 230, 0, 0.17);
}

.login-button:active {

  transform: translateY(0);
}

.login-button>i {

  transition: 0.3s ease;
}

.login-button:hover>i {

  transform: translateX(4px);
}


/* =========================================================
   LOADER
   ========================================================= */

.loader {

  display: none;

  width: 18px;
  height: 18px;

  border:
    2px solid rgba(27, 20, 100, 0.24);

  border-top-color: #1b1464;

  border-radius: 50%;

  animation: spin 0.7s linear infinite;
}

.login-button.loading .button-text,
.login-button.loading>i {

  display: none;
}

.login-button.loading .loader {

  display: block;
}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }

}


/* =========================================================
   PORTAL SELECTOR
   ========================================================= */

.portal-selector {

  margin-top: 24px;

  text-align: center;
}

.selector-label {

  display: block;

  margin-bottom: 9px;

  font-size: 9px;

  color:
    rgba(255, 255, 255, 0.55);
}

.portal-buttons {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 9px;
}

.portal-button {

  height: 45px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  border:
    1px solid rgba(255, 255, 255, 0.15);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.068);

  color:
    rgba(255, 255, 255, 0.70);

  font-family: 'Poppins', sans-serif;

  font-size: 11px;

  font-weight: 600;

  cursor: pointer;

  backdrop-filter: blur(8px);

  transition: 0.25s ease;
}

.portal-button:hover {

  background:
    rgba(192, 192, 42, 0.42);

  border-color:
    rgba(255, 230, 0, 0.28);

  color: #fff9a6;

  transform: translateY(-2px);
}

.portal-button.active {

  background:
    linear-gradient(135deg,
      #f9ed49 0%,
      #ffe600 50%,
      #f9ed49 100%);
  border-color:
    rgba(255, 230, 0, 0.40);

  color: #040404;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.30),

    0 0 18px rgba(27, 20, 100, 0.20);
}


/* =========================================================
   TEACHER MODE
   ========================================================= */

.login-card.teacher-mode .portal-status {

  background:
    rgba(255, 230, 0, 0.055);

  border-color:
    rgba(255, 230, 0, 0.25);
}

.login-card.teacher-mode .status-dot {

  background: #ffe600;

  box-shadow:
    0 0 0 5px rgba(255, 230, 0, 0.10);
}

.login-card.teacher-mode .status-text strong {

  color: #ffe600;
}

.login-card.teacher-mode #statusIcon {

  color: #ffe600;
}


/* =========================================================
   LOGIN MESSAGE
   ========================================================= */

.login-message {

  min-height: 17px;

  margin-top: 12px;

  text-align: center;

  font-size: 9px;

  font-weight: 500;
}

.login-message.success {

  color: #55E47D;
}

.login-message.error {

  color: #FF8E8E;
}


/* =========================================================
   SECURITY
   ========================================================= */

.security {

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  margin-top: 15px;

  color:
    rgb(0, 0, 0);

  font-size: 8px;
}

.security i {

  color: #21813c;

  font-size: 10px;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.copyright {

  margin-top: 15px;

  text-align: center;

  font-size: 8px;

  color:
    rgba(255, 255, 255, 0.55);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

  .login-page {

    padding:
      25px 15px;
  }

  .school-branding {

    margin-bottom: 20px;
  }

  .logo-wrapper {

    width: 88px;
    height: 88px;
  }

  .school-logo {

    width: 68px;
    height: 68px;
  }

  .school-name h1 {

    font-size: 28px;
  }

  .school-name h2 {

    font-size: 17px;
  }

  .login-card {

    padding: 27px 21px;

    border-radius: 24px;
  }

  .login-header h2 {

    font-size: 21px;
  }

}


@media (max-width: 420px) {

  .login-page {

    padding:
      20px 12px;
  }

  .logo-wrapper {

    width: 78px;
    height: 78px;
  }

  .school-logo {

    width: 60px;
    height: 60px;
  }

  .school-name h1 {

    font-size: 25px;
  }

  .school-name h2 {

    font-size: 15px;
  }

  .location {

    font-size: 8px;
  }

  .login-card {

    padding: 23px 17px;

    border-radius: 21px;
  }

  .login-icon {

    width: 48px;
    height: 48px;
  }

  .login-header h2 {

    font-size: 19px;
  }

  .login-header p {

    font-size: 14px;
  }

  .input-box input {

    height: 49px;
  }

  .login-button {

    height: 50px;
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
input:focus-visible {

  outline:
    2px solid #ffe600;

  outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}

/* =========================================
   MOBILE LANDSCAPE FULLSCREEN
========================================= */

.video-frame:fullscreen {

  width: 100vw;
  height: 100vh;

  min-height: 100vh;

  aspect-ratio: auto;

  background: #000000;

}


.video-frame:-webkit-full-screen {

  width: 100vw;
  height: 100vh;

  min-height: 100vh;

  aspect-ratio: auto;

  background: #000000;

}


@media (max-width: 650px) and (orientation: landscape) {

  .video-frame {

    min-height: 100vh;

  }

  .video-frame:fullscreen iframe {

    width: 100vw;
    height: 100vh;

  }

}

/* =========================================================
   COMPACT MOBILE LOGIN CARD
   Keeps the desktop/tablet design unchanged.
   Reduces the mobile login window by roughly 150px by
   tightening vertical spacing and control heights evenly.
   ========================================================= */

@media (max-width: 600px) {

  .school-name h1 {
    font-size: 33px;
  }

  .login-card {
    padding: 15px 21px;
  }

  .login-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .login-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .login-icon i {
    font-size: 18px;
  }

  .login-header h2 {
    font-size: 19px;
  }

  .login-header p {
    font-size: 13px;
  }

  .portal-status {
    gap: 8px;
    padding: 5px 10px;
    margin-bottom: 9px;
    border-radius: 11px;
  }

  .status-text span {
    font-size: 7px;
  }

  .status-text strong {
    font-size: 10px;
  }

  #statusIcon {
    font-size: 13px;
  }

  .input-group {
    margin-bottom: 7px;
  }

  .input-group label {
    gap: 5px;
    margin-bottom: 3px;
    font-size: 10px;
  }

  .input-box input {
    height: 43px;
    padding-left: 40px;
    padding-right: 42px;
    border-radius: 11px;
  }

  .input-box>i {
    left: 13px;
    font-size: 12px;
  }

  .password-toggle {
    right: 9px;
    width: 28px;
    height: 28px;
  }

  .error {
    min-height: 8px;
    margin-top: 2px;
    font-size: 8px;
  }

  .login-button {
    height: 43px;
    margin-top: 1px;
    border-radius: 12px;
    font-size: 12px;
  }

  .portal-selector {
    margin-top: 10px;
  }

  .selector-label {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .portal-buttons {
    gap: 7px;
  }

  .portal-button {
    height: 37px;
    gap: 5px;
    border-radius: 10px;
    font-size: 10px;
  }

  .login-message {
    min-height: 9px;
    margin-top: 5px;
    font-size: 8px;
  }

  .security {
    gap: 5px;
    margin-top: 6px;
    font-size: 7px;
  }

  .security i {
    font-size: 9px;
  }
}

/* Extra-small phones: keep the compact proportions without
   changing the overall visual design. */
@media (max-width: 420px) {

  .school-name h1 {
    font-size: 30px;
  }

  .login-card {
    padding: 14px 17px;
    border-radius: 20px;
  }

  .login-header {
    margin-bottom: 8px;
  }

  .login-icon {
    width: 40px;
    height: 40px;
  }

  .login-header h2 {
    font-size: 18px;
  }

  .login-header p {
    font-size: 12px;
  }

  .portal-status {
    margin-bottom: 8px;
  }

  .input-group {
    margin-bottom: 6px;
  }

  .input-box input {
    height: 41px;
  }

  .login-button {
    height: 41px;
  }

  .portal-selector {
    margin-top: 8px;
  }

  .portal-button {
    height: 35px;
  }

  .security {
    margin-top: 5px;
  }
}


/* =========================================================
   LOGIN MODAL OVER THE WELCOME PAGE
   ========================================================= */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 12, 25, 0.07);
  /* backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px); */
}

.login-modal.open {
  display: flex;
}

.login-modal-position {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(455px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  touch-action: none;
}

.login-modal .login-section {
  position: relative;
  width: 100%;
  max-width: 455px;
  animation: loginModalAppear 0.28s ease both;
}

@keyframes loginModalAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal .login-card {
  cursor: default;
  user-select: none;
}

.login-modal .login-card input,
.login-modal .login-card button,
.login-modal .login-card label {
  user-select: auto;
}

.login-modal.dragging .login-card {
  cursor: grabbing;
}

@media (max-width: 600px) {
  .login-modal {
    padding: 12px;
  }

  .login-modal-position {
    width: min(455px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-modal .login-section {
    animation: none;
  }
}


.input-box input {
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fefefe;
}

.input-box input::placeholder {
  font-family: "Inter", Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #fbfbfb;
  opacity: 1;
}

/* =========================================================
   LOGIN STYLE TOGGLE + SOLID BCC LOGIN MODE
   The default liquid-glass login remains unchanged.
   Clicking the small pale-yellow i toggles solid-mode.
   ========================================================= */
.login-style-toggle {
  position: absolute;
  top: 36px;
  right: 10px;
  z-index: 12;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff9a6;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: .96;
  transition: transform .22s ease, color .22s ease, opacity .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.login-style-toggle:hover {
  color: #ffe600;
  opacity: 1;
  transform: scale(1.12);
}

.login-style-toggle:focus-visible {
  color: #ffe600;
  outline: 2px solid rgba(255, 249, 166, .8);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Solid mode: premium midnight-navy BCC card. Only the card shell
   receives the animated perimeter; buttons and inner controls stay unchanged. */
.login-card.solid-mode {
  isolation: isolate;
  max-width: 475px;
  padding: 34px 36px 30px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0, 126, 255, .30), transparent 42%),
    radial-gradient(ellipse at 100% 100%, rgba(60, 48, 255, .30), transparent 44%),
    linear-gradient(145deg, #061632 0%, #082653 52%, #10134d 100%);
  border: 1px solid rgba(55, 139, 255, .92);
  box-shadow:
    0 24px 70px rgba(0, 8, 28, .58),
    0 0 22px rgba(0, 104, 255, .58),
    0 0 48px rgba(0, 72, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(35, 109, 255, .32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #f7faff;
}

/* Animated blue/cyan/yellow perimeter; inner card content remains untouched. */
.login-card.solid-mode::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg,
    #ffe54f 0deg, #ffe54f 35deg,
    #16d9ff 85deg, #187bff 145deg,
    #695cff 205deg, #168cff 270deg,
    #ffe54f 330deg, #ffe54f 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: solidCardBorderSpin 6s linear infinite;
}

@keyframes solidCardBorderSpin { to { transform: rotate(360deg); } }

.login-card.solid-mode:hover {
  border-color: rgba(55, 139, 255, .92);
  box-shadow:
    0 27px 78px rgba(0, 8, 28, .62),
    0 0 28px rgba(0, 120, 255, .68),
    0 0 58px rgba(0, 72, 255, .32),
    inset 0 0 26px rgba(48, 126, 255, .10),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(35, 109, 255, .32);
}

@media (prefers-reduced-motion: reduce) {
  .login-card.solid-mode::before { animation: none; }
}

.login-card.solid-mode .glass-shine { display: none; }
.login-card.solid-mode .login-style-toggle { color: #ffe34d; }
.login-card.solid-mode .login-style-toggle:hover,
.login-card.solid-mode .login-style-toggle:focus-visible { color: #ffffff; }
.login-card.solid-mode .login-header { padding-right: 34px; }

.login-card.solid-mode .login-icon {
  width: 58px; height: 58px; border-radius: 50%;
  color: #092453;
  background: linear-gradient(145deg, #fff36a 0%, #ffd52e 58%, #f4b91d 100%);
  border: 2px solid rgba(255, 239, 102, .95);
  box-shadow: 0 0 18px rgba(255, 220, 42, .34), inset 0 1px 0 rgba(255,255,255,.8);
}
.login-card.solid-mode .login-header h2 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(55, 133, 255, .24);
}
.login-card.solid-mode .login-header p { color: rgba(232, 241, 255, .86); text-shadow: none; }

.login-card.solid-mode .portal-status {
  background: linear-gradient(110deg, rgba(42, 85, 139, .58), rgba(38, 65, 127, .64));
  border: 1px solid rgba(135, 180, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.12);
}
.login-card.solid-mode .status-text span { color: rgba(220, 233, 255, .72); }
.login-card.solid-mode .status-text strong,
.login-card.solid-mode #statusIcon { color: #ffe33f; }
.login-card.solid-mode.teacher-mode .status-text strong,
.login-card.solid-mode.teacher-mode #statusIcon { color: #ffe33f; }

.login-card.solid-mode .input-group label,
.login-card.solid-mode .input-group label i { color: #eaf2ff; }
.login-card.solid-mode .input-box input {
  height: 56px;
  background: linear-gradient(110deg, rgba(20, 49, 91, .90), rgba(17, 39, 89, .92));
  color: #ffffff;
  border: 1px solid rgba(111, 160, 235, .68);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 14px rgba(0,0,0,.14);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  caret-color: #ffe33f;
}
.login-card.solid-mode .input-box input::placeholder { color: rgba(220, 233, 255, .78); }
.login-card.solid-mode .input-box input:focus {
  background: linear-gradient(110deg, rgba(24, 57, 105, .98), rgba(21, 45, 101, .98));
  border-color: #6ea8ff;
  box-shadow: 0 0 0 3px rgba(39, 125, 255, .20), 0 0 18px rgba(22, 115, 255, .15);
}
.login-card.solid-mode .input-box>i { color: #d4e4ff; }
.login-card.solid-mode .password-toggle { color: #d8e7ff; }
.login-card.solid-mode .password-toggle:hover { color: #ffe33f; background: rgba(255,255,255,.08); }

.login-card.solid-mode .login-button {
  height: 55px;
  color: #071b42;
  background: linear-gradient(110deg, #ffe84d 0%, #ffda30 58%, #ffc928 100%);
  border: 1px solid rgba(255, 245, 153, .9);
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(255, 202, 35, .22), inset 0 1px 0 rgba(255,255,255,.62);
}
.login-card.solid-mode .login-button:hover {
  color: #061632;
  background: linear-gradient(110deg, #fff16a, #ffdc35 58%, #ffd02c);
  box-shadow: 0 10px 28px rgba(255, 202, 35, .34), 0 0 18px rgba(255, 222, 52, .16), inset 0 1px 0 rgba(255,255,255,.7);
}
.login-card.solid-mode .loader { border-color: rgba(8, 27, 66, .22); border-top-color: #081b42; }
.login-card.solid-mode .portal-selector .selector-label { color: rgba(220, 233, 255, .70); }
.login-card.solid-mode .portal-button {
  background: rgba(12, 34, 72, .72);
  color: #e4edff;
  border: 1px solid rgba(111, 160, 235, .58);
  border-radius: 14px;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.login-card.solid-mode .portal-button:hover {
  background: rgba(31, 67, 120, .90);
  border-color: rgba(143, 190, 255, .84);
  color: #ffffff;
}
.login-card.solid-mode .portal-button.active {
  background: linear-gradient(110deg, rgba(18, 52, 103, .98), rgba(20, 45, 94, .98));
  color: #ffe33f;
  border: 1px solid #ffdf27;
  box-shadow: 0 0 0 1px rgba(255, 223, 39, .12), 0 0 18px rgba(255, 218, 38, .13), inset 0 1px 0 rgba(255,255,255,.08);
}
.login-card.solid-mode .login-message { color: #edf4ff; }
.login-card.solid-mode .login-message.success { color: #62e7a0; }
.login-card.solid-mode .login-message.error { color: #ff9292; }
.login-card.solid-mode .security { color: rgba(221, 234, 255, .82); }
.login-card.solid-mode .security i { 
  color: #5ee7a0; 
}

@media (max-width: 600px) {
  .login-style-toggle {
    top: 17px;
    right: 21px;
    font-size: 17px;
  }

  .login-card.solid-mode {
    padding: 24px 22px 22px;
    border-radius: 24px;
  }

  .login-card.solid-mode .login-header {
    padding-right: 28px;
  }
}

@media (max-width: 420px) {
  .login-style-toggle {
    top: 14px;
    right: 17px;
    font-size: 16px;
  }

  .login-card.solid-mode {
    padding: 14px 17px;
    border-radius: 20px;
  }

  .login-card.solid-mode .login-icon {
    width: 40px;
    height: 40px;
  }

  .login-card.solid-mode .input-box input {
    height: 41px;
  }

  .login-card.solid-mode .login-button {
    height: 41px;
  }
}

@media (max-width: 820px) {
  .disable-mobile {
    pointer-events: none;
    /* Blocks tap/click events */
    cursor: default;
    /* Removes link hand cursor */
  }
}

/* =========================================================
   SOLID CARD: MATCH THE GLASS CARD'S SURFACE ONLY
   The glass-mode card remains unchanged. Existing content and
   interactions are preserved; the primary button stays yellow.
   ========================================================= */
.login-card.solid-mode {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.105),
    rgba(27, 20, 100, 0.18),
    rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.705);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 0 55px rgba(27, 20, 100, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(25px) saturate(145%);
  -webkit-backdrop-filter: blur(25px) saturate(145%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-card.solid-mode:hover {
  border-color: rgba(255, 255, 255, 0.705);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 0 55px rgba(27, 20, 100, 0.15),
    inset 0 0 18px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* Same centered drag handle position and appearance as glass mode */
.login-card.solid-mode::after {
  top: 9px;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
}

/* Keep the primary action yellow in solid mode */
.login-card.solid-mode .login-button {
  color: #071b42;
  background: linear-gradient(110deg, #ffe84d 0%, #ffda30 58%, #ffc928 100%);
  border: 1px solid rgba(255, 245, 153, 0.9);
  box-shadow: 0 8px 24px rgba(255, 202, 35, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}
.login-card.solid-mode .login-button:hover {
  color: #061632;
  background: linear-gradient(110deg, #fff16a, #ffdc35 58%, #ffd02c);
  box-shadow: 0 10px 28px rgba(255, 202, 35, 0.34), 0 0 18px rgba(255, 222, 52, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* =========================================================
   SOLID CARD: STATIC PALE-YELLOW + BCC BLUE/GOLD THEME
   Glass mode is intentionally untouched.
   ========================================================= */
.login-card.solid-mode {
  background: #fff6cf !important;
  color: #172b4d !important;
  border: 1.5px solid #d7ad24 !important;
  box-shadow: 0 18px 42px rgba(31, 43, 65, .22),
              0 0 0 4px rgba(255, 218, 91, .14),
              inset 0 1px 0 rgba(255,255,255,.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Remove the rotating animated border/background from solid mode only. */
.login-card.solid-mode::before {
  display: none !important;
  animation: none !important;
  background: none !important;
}
.login-card.solid-mode:hover {
  border-color: #d7ad24 !important;
  box-shadow: 0 20px 46px rgba(31, 43, 65, .24),
              0 0 0 4px rgba(255, 218, 91, .16),
              inset 0 1px 0 rgba(255,255,255,.95) !important;
}
/* Keep the centered drag handle in the same position as glass mode. */
.login-card.solid-mode::after {
  top: 9px !important;
  left: 50% !important;
  width: 40px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #b38b18 !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}
.login-card.solid-mode .glass-shine { display: none !important; }
.login-card.solid-mode .login-style-toggle { color: #8a6810 !important; }
.login-card.solid-mode .login-style-toggle:hover,
.login-card.solid-mode .login-style-toggle:focus-visible { color: #174ea6 !important; }
.login-card.solid-mode .login-header h2 { color: #142b50 !important; text-shadow: none !important; }
.login-card.solid-mode .login-header p { color: #4b5e78 !important; }
.login-card.solid-mode .input-group label,
.login-card.solid-mode .input-group label i { color: #263e60 !important; }
.login-card.solid-mode .portal-status {
  background: #fffdf4 !important;
  border: 1px solid #e2d39a !important;
  box-shadow: inset 0 1px 0 #fff !important;
}
.login-card.solid-mode .status-text span { color: #69758a !important; }
.login-card.solid-mode .input-box input {
  background: #fffdf6 !important;
  color: #172b4d !important;
  border: 1px solid #c9d3e2 !important;
  box-shadow: inset 0 1px 2px rgba(23,43,77,.04) !important;
  caret-color: #174ea6 !important;
}
.login-card.solid-mode .input-box input::placeholder { color: #78869a !important; }
.login-card.solid-mode .input-box input:focus {
  background: #ffffff !important;
  border-color: #3478d4 !important;
  box-shadow: 0 0 0 3px rgba(52,120,212,.15) !important;
}
.login-card.solid-mode .input-box > i,
.login-card.solid-mode .password-toggle { color: #526986 !important; }
.login-card.solid-mode .password-toggle:hover { color: #174ea6 !important; background: rgba(23,78,166,.07) !important; }
/* Main action remains dark golden yellow with navy text. */
.login-card.solid-mode .login-button {
  color: #172b4d !important;
  background: #f2c230 !important;
  border: 1px solid #d7a91a !important;
  box-shadow: 0 5px 12px rgba(174,128,13,.18), inset 0 1px 0 rgba(255,255,255,.5) !important;
}
.login-card.solid-mode .login-button:hover {
  color: #142b50 !important;
  background: #eab51b !important;
  box-shadow: 0 7px 16px rgba(174,128,13,.23) !important;
}
/* Portal choices: blue for Student, dark gold for Teacher. */
.login-card.solid-mode .portal-button {
  background: #edf4ff !important;
  color: #174ea6 !important;
  border: 1px solid #9bb9e6 !important;
  box-shadow: none !important;
}
.login-card.solid-mode .portal-button:hover {
  background: #e0ecff !important;
  color: #123d82 !important;
  border-color: #6e9bdb !important;
}
.login-card.solid-mode .portal-button.active {
  background: #174ea6 !important;
  color: #ffffff !important;
  border: 1px solid #174ea6 !important;
  box-shadow: 0 3px 9px rgba(23,78,166,.18) !important;
}
.login-card.solid-mode .portal-button.active i,
.login-card.solid-mode .portal-button.active svg { color: inherit !important; }
.login-card.solid-mode .login-message { color: #263e60 !important; }
.login-card.solid-mode .login-message.success { color: #16834a !important; }
.login-card.solid-mode .login-message.error { color: #b42318 !important; }
.login-card.solid-mode .security { color: #536781 !important; }
.login-card.solid-mode .security i { color: #16834a !important; }
/* Teacher status = yellow; Student status = green. */
.login-card.solid-mode.teacher-mode .status-text strong,
.login-card.solid-mode.teacher-mode #statusIcon,
.login-card.solid-mode.teacher-mode .status-dot { color: #a87500 !important; }
.login-card.solid-mode.teacher-mode .status-dot { background: #e5b51b !important; }
.login-card.solid-mode.teacher-mode .portal-status { background: #fff5c7 !important; border-color: #e5c65d !important; }
.login-card.solid-mode:not(.teacher-mode) .status-text strong,
.login-card.solid-mode:not(.teacher-mode) #statusIcon,
.login-card.solid-mode:not(.teacher-mode) .status-dot { color: #16834a !important; }
.login-card.solid-mode:not(.teacher-mode) .status-dot { background: #20a464 !important; }
.login-card.solid-mode:not(.teacher-mode) .portal-status { background: #e9f8ef !important; border-color: #9ed8b5 !important; }

/* =========================================================
   SOLID CARD REFINEMENT — NAVY GRADIENT + GLASS-MODE DIMENSIONS
   Glass mode remains unchanged. Solid mode uses the same card
   spacing and proportions as the glass card at every breakpoint.
   ========================================================= */
.login-card.solid-mode {
  background: #fff9a6 !important;
  color: #102448 !important;
  box-shadow: 0 18px 44px rgba(12, 28, 58, 0.22),
              0 0 0 1px rgba(255, 255, 255, 0.72),
              inset 0 1px 0 rgba(255, 255, 255, 0.95),
              inset 0 -1px 0 rgba(178, 137, 31, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 20px 34px !important;
  border-radius: 28px !important;
  transition: box-shadow .3s ease, border-color .3s ease !important;
}
.login-card.solid-mode:hover {
  box-shadow: 0 20px 48px rgba(12, 28, 58, 0.24),
              0 0 0 1px rgba(255, 255, 255, 0.72),
              inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}
.login-card.solid-mode::after {
  top: 9px !important; left: 50% !important;
  width: 40px !important; height: 4px !important;
  border-radius: 999px !important;
  background: #a9872d !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}
/* Deep navy gradients replace blue accents; buttons remain yellow/navy. */
.login-card.solid-mode .login-style-toggle,
.login-card.solid-mode .login-style-toggle:hover,
.login-card.solid-mode .login-style-toggle:focus-visible,
.login-card.solid-mode .input-box input:focus,
.login-card.solid-mode .password-toggle:hover {
  color: #102448 !important;
}
.login-card.solid-mode .input-box input:focus {
  color: #344b70;
  border-color: #243f70 !important;
  box-shadow: 0 0 0 3px rgba(24, 49, 91, .13) !important;
}
.login-card.solid-mode .input-box > i,
.login-card.solid-mode .password-toggle { color: #344b70 !important; }
.login-card.solid-mode .portal-button {
  background: linear-gradient(135deg, #f7f9fd 0%, #e7edf7 100%) !important;
  color: #172e55 !important;
  border: 1px solid #a9b6cc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.login-card.solid-mode .portal-button:hover {
  background: linear-gradient(135deg, #edf2fa 0%, #dbe4f2 100%) !important;
  color: #102448 !important;
  border-color: #647a9d !important;
}
.login-card.solid-mode .portal-button.active {
  background: linear-gradient(135deg, #263f6b 0%, #102448 100%) !important;
  color: #fff !important;
  border: 1px solid #102448 !important;
  box-shadow: 0 4px 10px rgba(16,36,72,.2), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
.login-card.solid-mode .login-button {
  color: #fff !important;
  background: linear-gradient(135deg, #263f6b 0%, #102448 100%) !important;
  border: 1px solid #102448 !important;
  box-shadow: 0 4px 10px rgba(16,36,72,.2), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
.login-card.solid-mode .login-button:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #263f6b 0%, #102448 100%) !important;
  box-shadow: 0 4px 10px rgba(16,36,72,.2), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
/* Match the glass card's responsive padding/radius instead of shrinking solid mode. */
@media (max-width: 820px) {
  .login-card.solid-mode { padding: 27px 21px !important; border-radius: 24px !important; }
}
@media (max-width: 420px) {
  .login-card.solid-mode { padding: 23px 17px !important; border-radius: 21px !important; }
}


css
/* Fix browser autofill text visibility in the solid login card */
.login-card.solid-mode .input-box input:-webkit-autofill,
.login-card.solid-mode .input-box input:-webkit-autofill:hover,
.login-card.solid-mode .input-box input:-webkit-autofill:focus,
.login-card.solid-mode .input-box input:-webkit-autofill:active {
  -webkit-text-fill-color: #102448 !important;
  caret-color: #102448 !important;
  transition: background-color 999999s ease-in-out 0s !important;
  box-shadow: 0 0 0 1000px #fff9a6 inset !important;
}

/* Keep placeholder and typed text readable */
.login-card.solid-mode .input-box input {
  color: #102448 !important;
  caret-color: #102448 !important;
}

.login-card.solid-mode .input-box input::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: none;
    border: none;
}

.login-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.login-card.solid-mode .login-icon  {
  border-radius: 16px;

}