/* Login & Forgot Password Modal Styles */
.login-modal-overlay,
.forgot-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 10000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: radial-gradient(circle at center, rgba(23, 122, 135, 0.45), rgba(12, 39, 48, 0.72));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.login-modal-overlay.is-open,
.forgot-overlay.is-open,
.login-modal-overlay[style*="display: flex"],
.forgot-overlay[style*="display: flex"] {
  opacity: 1;
  visibility: visible;
}

.login-modal-overlay.is-closing,
.forgot-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 1, 1);
}

.login-modal-card {
  position: relative;
  width: min(820px, 100%);
  min-height: 380px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #116f79;
  opacity: 0;
  transform: scale(0.95) translateY(14px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
}

.login-modal-overlay.is-open .login-modal-card,
.login-modal-overlay[style*="display: flex"] .login-modal-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.login-modal-overlay.is-closing .login-modal-card {
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 1, 1), transform 0.2s cubic-bezier(0.4, 0, 1, 1);
}
  


.modal-right-side .login-title {
  /* Liquid Gradient Effect */
  background: linear-gradient(
    90deg, 
    #7fe3f2 0%, 
    #8be2f0 25%, 
    #ffffff 50%, 
    rgb(134, 226, 233) 75%, 
    #ffffff 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shinyText 6s linear infinite;
  will-change: background-position;
}

@keyframes shinyText {
  to {
    background-position: 200% center;
  }
}

.modal-left-side {
  position: relative;
  padding: 30px 34px 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 72% 72%, rgba(80, 187, 196, 0.12) 0, rgba(80, 187, 196, 0) 34%),
    linear-gradient(180deg, #e3f8ff 0%, #f4fafb 100%);
  color: #045b5b;
  display: flex;
  flex-direction: column;
}

.modal-left-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.3;
  pointer-events: none;
}

.modal-left-top,
.modal-left-middle,
.modal-left-bottom {
  position: relative;
  z-index: 1;
}

.modal-left-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-brand-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.modal-left-middle {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* Centers the row contents horizontally */
  width: 100%;             /* Ensures full width to allow centering */
  gap: 16px;
}

.modal-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  flex-shrink: 0;
  /* Nilagyan ng smooth floating animation */
  animation: floatLogo 4s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  cursor: pointer;
}

/* Hover Effect: Pag itinutok ang mouse, mag-i-scale up nang konti */
.modal-logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* Keyframes para sa paglutang at pag-glow */
@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0px);
    filter: drop-shadow(0 10px 15px rgba(240, 252, 253, 0.3));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 20px 25px rgba(208, 252, 255, 0.6));
  }
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
/* Container Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Agwat sa kanan ng Input para hindi matabunan ng mata ang tina-type na password */
.password-input-wrapper input {
  width: 100%;
  padding-right: 45px !important; /* Binigyan ng space sa kanan para sa eye button */
}

/* Itago ang built-in na eye/clear ng Edge para iisa lang ang show/hide button */
.password-input-wrapper input::-ms-reveal,
.password-input-wrapper input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

/* Eye Button Positioning sa Loob ng Input */
.toggle-password-btn {
  position: absolute;
  right: 12px;                  /* Agwat mula sa kanang gilid */
  top: 50%;                     /* Ibababa sa kalahati */
  transform: translateY(-50%);  /* Sakto sa vertical center */
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  padding: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.toggle-password-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.left-graphic-box {
  width: min(100%, 410px);
  border-radius: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.left-banner-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #062b33;
}

.modal-left-bottom {
  margin-top: auto;
  padding-top: 48px;
}

.welcome-title {
  margin: 0 0 5px;
  font-size: 25px;
  font-weight: 800;
  color: #154650;
}

.left-banner-desc {
  max-width: 360px;
  margin-top: -8px;
  font-size: 14px;
  line-height: 1.35;
  color: #154650;
}

.modal-right-side {
  position: relative;
  padding: 40px 42px;
  /* Palitan ang static gradient ng animated 300% size gradient */
  background: linear-gradient(-45deg, #0d535b, #116f79, #118091, #0f7b86, #16525a);
  background-size: 300% 300%;
  animation: gradientFlow 10s ease infinite;
  color: #ffffff;
  overflow: hidden; /* Para hindi lumagpas ang glow effects */
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.modal-right-side::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(68, 195, 204, 0.45) 0%, rgba(17, 128, 145, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 6s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes orbPulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3) translate(-20px, -20px);
    opacity: 0.8;
  }
}

.modal-right-side .login-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.modal-close-btn,
.close-modal-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn {
  font-size: 34px;
  line-height: 1;
}

.close-modal-btn {
  font-size: 30px;
  line-height: 1;
}

.modal-close-btn:hover,
.close-modal-btn:hover {
  color: #ffffff;
  transform: scale(1.05);
  transform: rotate(90deg) scale(1.15);
}

.modal-brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
}


.login-card-inner {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.section-rule {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  text-align: left;
}

.login-modal-card .field label,
.forgot-modal label {
  font-size: 13px;
  font-weight: 500;
  color: #f7fbfe;
}
.bokeh-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bokeh-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(68, 195, 204, 0) 70%);
  animation: floatUp 8s infinite linear;
  will-change: transform, opacity;
  bottom: -30px;
}

.bokeh-bubble:nth-child(1) {
  left: 15%;
  width: 20px;
  height: 20px;
  animation-duration: 7s;
  animation-delay: 0s;
}

.bokeh-bubble:nth-child(2) {
  left: 60%;
  width: 35px;
  height: 35px;
  animation-duration: 10s;
  animation-delay: 2s;
  opacity: 0.6;
}

.bokeh-bubble:nth-child(3) {
  left: 85%;
  width: 15px;
  height: 15px;
  animation-duration: 6s;
  animation-delay: 4s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-400px) scale(1.2);
    opacity: 0;
  }
}
.login-modal-overlay::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 450px;
  background: radial-gradient(
    circle, 
    rgba(0, 210, 255, 0.35) 0%, 
    rgba(17, 108, 116, 0.15) 50%, 
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
  animation: backlightPulse 5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes backlightPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.9;
  }
}
/* Film Grain Texture Overlay */
.login-modal-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04; /* Sobrang nipis lang para texture lang */
  pointer-events: none;
  z-index: 0;
}
.login-form .field input,
.forgot-modal .field input {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13px;
  color: #1b2a32;
  background: #e8eff9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.login-form .field input:focus,
.forgot-modal .field input:focus {
 background: #ffffff !important;
  transform: translateY(-2px); /* Bahagyang aangat */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(68, 195, 204, 0.4) !important;
}

.input-error {
  box-shadow: 0 0 0 2px rgba(255, 99, 99, 0.7) !important;
}

.field-error {
  color: #ffb8b8;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.msg-error,
.msg-success {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}

.msg-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid rgba(254, 178, 178, 0.65);
  color: #ffffff;
  font-weight: 550;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.msg-error a,
.msg-error-link {
  color: #a5f3fc !important;
  font-weight: 750 !important;
  text-decoration: underline !important;
  font-size: 12px !important;
  cursor: pointer;
  display: inline-block;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.msg-error a:hover,
.msg-error-link:hover {
  color: #ffffff !important;
}

.forgot-feedback {
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  letter-spacing: -0.1px;
}

.forgot-feedback.error {
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid rgba(254, 178, 178, 0.65);
  color: #ffffff;
  font-weight: 550;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.msg-success,
.forgot-feedback.success {
  background: rgba(216, 247, 233, 0.15);
  border: 1px solid rgba(197, 255, 226, 0.4);
  color: #effff6;
}

.remember-forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 28px;
  font-size: 14px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ecf9fb;
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #3a98a8; /* Consistent sa button color mo */
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.remember-label input[type="checkbox"]:hover {
  transform: scale(1.2); /* LALAKI NANG KONTI PAG HOVER */
}

.remember-label input[type="checkbox"]:checked {
  animation: checkPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.forgot-link {
  color: #d4f4fb;
  text-decoration: none;
  font-weight: 700;
}

.forgot-link:hover {
  text-decoration: underline;
}

.modal-submit-btn {
  width: 50%;
  display: block;      
  margin: 20px auto 0;
  border: solid 1px rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #3a98a8 0%, #2fb6c0 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 750 !important; 
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(10, 56, 63, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.modal-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 24px rgba(10, 56, 63, 0.35);
}

.login-foot {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.login-foot a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
}

.forgot-modal {
  position: relative;
  width: min(450px, 94vw);
  border-radius: 22px;
  padding: 32px 24px 26px;
  background: linear-gradient(180deg, rgba(17, 111, 121, 0.98), rgba(13, 89, 98, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.95) translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.forgot-overlay.is-open .forgot-modal,
.forgot-overlay[style*="display: flex"] .forgot-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.forgot-overlay.is-closing .forgot-modal {
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 1, 1), transform 0.2s cubic-bezier(0.4, 0, 1, 1);
}

.forgot-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
}

.forgot-subtitle {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.4;
}

.forgot-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.forgot-actions .submit-btn,
.forgot-actions .cancel-btn {
  flex: 1 1 0 !important;
  width: 50% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.forgot-actions .submit-btn {
  border: 1.5px solid transparent !important;
  color: #ffffff !important;
  background: linear-gradient(90deg, #2498ac 0%, #1799a2 100%) !important;
  box-shadow: 0 4px 12px rgba(23, 153, 162, 0.3) !important;
}

.forgot-actions .submit-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(23, 153, 162, 0.4) !important;
}

.forgot-actions .submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.forgot-actions .cancel-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.forgot-actions .cancel-btn:hover {
  transform: translateY(-1.5px);
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

.forgot-actions .cancel-btn:active {
  transform: translateY(0) scale(0.98);
}

@keyframes springPop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Animation for Mobile Bottom Sheet */
@keyframes springSheetUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE STYLES (BOTTOM SHEET)
   ========================================== */
@media (max-width: 768px) {
  .login-modal-overlay,
  .forgot-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .login-modal-card,
  .login-modal-card * {
    box-sizing: border-box !important;
  }

  /* Bottom Sheet Drawer for Login */
  .login-modal-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    max-height: 90dvh !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 22px max(28px, calc(16px + env(safe-area-inset-bottom, 16px))) 22px !important;
    border-radius: 26px 26px 0 0 !important;
    background: #116f79 !important;
    border: none !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    position: relative !important;
    transform: translate3d(0, 100%, 0) !important;
    opacity: 0 !important;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease !important;
  }

  .login-modal-overlay.is-open .login-modal-card,
  .login-modal-overlay[style*="display: flex"] .login-modal-card {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
  }

  .login-modal-overlay.is-closing .login-modal-card {
    transform: translate3d(0, 100%, 0) !important;
    opacity: 0 !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease !important;
  }

  /* Drag Indicator Handle */
  .login-modal-card::before {
    content: '';
    display: block;
    width: 38px;
    height: 4.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto 12px;
    flex-shrink: 0;
  }

  /* Top Brand Pill */
  .modal-left-side {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 0 8px 0 !important;
    width: 100% !important;
  }

  .modal-left-top {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 4px 14px !important;
  }

  .modal-brand-title {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: 0.6px !important;
  }

  .modal-left-middle,
  .modal-left-bottom,
  .bokeh-container {
    display: none !important;
  }

  /* Close Button */
  .modal-close-btn,
  .close-modal-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 30 !important;
  }

  .modal-close-btn:hover,
  .close-modal-btn:hover {
    color: #ffffff !important;
  }

  /* Form Body */
  .modal-right-side,
  .login-card-inner,
  form.login-form {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: 100% !important;
  }

  .modal-right-side .login-title {
    margin: 2px 0 14px 0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
    text-align: center !important;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
  }

  /* Fields & Labels */
  .field {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  .field label {
    color: #f7fbfe !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* Inputs (Exact Desktop Input Styling) */
  .login-form .field input,
  .login-modal-card input:not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    background: #e8eff9 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    color: #1b2a32 !important;
    padding: 10px 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
    transform: none !important;
  }

  .password-input-wrapper {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .password-input-wrapper input {
    padding-right: 40px !important;
  }

  .toggle-password-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    color: #1b2a32 !important;
    opacity: 0.6 !important;
    z-index: 5 !important;
  }

  /* Remember & Forgot */
  .remember-forgot-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 6px 0 18px 0 !important;
  }

  .remember-label {
    font-size: 12px !important;
    color: #ecf9fb !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    margin: 0 !important;
  }

  .remember-label input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    accent-color: #3a98a8 !important;
    margin: 0 !important;
  }

  .forgot-link {
    font-size: 12px !important;
    color: #d4f4fb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  .forgot-link:hover {
    text-decoration: underline !important;
  }

  /* Submit Button (Desktop Gradient Button) */
  .modal-submit-btn {
    width: 100% !important;
    max-width: 180px !important;
    height: 40px !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    border-radius: 14px !important;
    background: linear-gradient(90deg, #3a98a8 0%, #2fb6c0 100%) !important;
    border: solid 1px rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(10, 56, 63, 0.25) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  /* ── FORGOT PASSWORD MODAL (BOTTOM SHEET) ── */
  .forgot-modal {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 22px max(28px, calc(16px + env(safe-area-inset-bottom, 16px))) 22px !important;
    border-radius: 26px 26px 0 0 !important;
    background: linear-gradient(180deg, rgba(17, 111, 121, 0.98), rgba(13, 89, 98, 0.98)) !important;
    border: none !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35) !important;
    position: relative !important;
    animation: springSheetUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .forgot-modal::before {
    content: '';
    display: block;
    width: 38px;
    height: 4.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto 12px;
  }

  .forgot-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    color: #ffffff !important;
    text-align: center !important;
  }

  .forgot-subtitle {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 0 18px 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
  }

  .forgot-modal .field {
    margin-bottom: 14px !important;
  }

  .forgot-modal .field label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #f7fbfe !important;
    margin-bottom: 6px !important;
  }

  .forgot-modal .field input {
    width: 100% !important;
    height: 38px !important;
    background: #e8eff9 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    color: #1b2a32 !important;
    padding: 10px 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  }

  .forgot-actions {
    display: flex !important;
    gap: 10px !important;
    margin-top: 14px !important;
    width: 100% !important;
  }

  .forgot-actions .cancel-btn,
  .forgot-actions .submit-btn {
    flex: 1 !important;
    height: 38px !important;
    font-size: 13px !important;
  }
}

/* ── LOGIN MODAL FOOTER (Sign Up redirect link) ── */
.login-modal-card .login-foot {
  margin-top: 14px;
  text-align: center;
}

.login-modal-card .login-foot p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  margin: 0;
}

.login-modal-card .login-foot a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

.login-modal-card .login-foot a:hover {
  opacity: 0.8;
}

/* ── ACCESSIBILITY: REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .login-modal-overlay,
  .forgot-overlay,
  .login-modal-card,
  .forgot-modal,
  .modal-logo,
  .modal-submit-btn,
  .forgot-actions .submit-btn,
  .forgot-actions .cancel-btn {
    animation: none !important;
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
}