/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Disable selection globally */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Re-enable selection for input fields and form elements */
input, textarea, select, option {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* Base Elements */
html {
  height: 100%;
  width: 100%;
}

body {
  display: grid;
  height: 100%;
  width: 100%;
  margin: 0;
  place-items: center;
  /* Non-repeating intersecting triangles covering full viewport */
  background-color: #c8dff3;
  background-image:
    /* Three large triangles - 120 degrees apart with minimal anti-aliasing */
    linear-gradient(30deg, transparent 49.9%, #92bce3 50.1%),
    linear-gradient(150deg, transparent 49.9%, #a8cae9 50.1%),
    linear-gradient(270deg, transparent 49.9%, #7aa7d4 50.1%);
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-attachment: fixed;
  line-height: 1.6;
  padding-top: 60px;
  padding-bottom: 20px;
}

/* Typography */
h2, h3, h4, h5, label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}
h2 {
  font-weight: 600;
  font-size: 22px;
  color: #2c5282;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 18px;
}
h3 {
  font-weight: 600;
  font-size: 18px;
  margin-left: 12px;
  color: #2c5282;
}

.tabsText {
  font-size: 16px;
  text-align: justify;
  word-wrap: break-word;
  line-height: 1.5;
  hyphens: auto;
  padding: 0 5px;
  color: #444;
}

/* Main content wrapper */
.main-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1020px; /* 600px (slideshow) + 390px (wrapper) + 30px (gap) */
  margin: 0 auto;
}

/* Header banner */
.header-banner {
  width: 100%;
  max-width: 1020px; /* Match main-content-wrapper max-width */
  margin: 0 auto 30px auto;
  padding: 0 15px;
  animation: fadeIn 0.8s ease-out;
  box-sizing: border-box;
}

.header-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

/* Container Styles */
.wrappercontainer {
  vertical-align: middle;
  width: 100%;
  margin: 0;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wrapper {
  overflow: hidden;
  max-width: 390px;
  min-width: 390px;
  height: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(44, 82, 130, 0.15);
  border: 1px solid rgba(146, 188, 227, 0.3);
  width: 100%;
  float: right;
}


/* Slideshow Container */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-width: 390px;
  height: auto;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(44, 82, 130, 0.15);
  border: 1px solid rgba(146, 188, 227, 0.3);
  padding-bottom: 20px;
}


/* Individual Slides */
.slideshow-container .slide {
  display: none; /* Hide all slides by default */
  padding: 30px 25px;
  animation: fadeEffect 1.5s;
}

/* Fade animation */
@keyframes fadeEffect {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* First slide visible by default */
.slideshow-container .slide:first-child {
  display: block;
}

/* Style for larger single images */
.evdimgs-large {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 14px;
  margin: 15px auto;
  display: block;
  object-fit: contain;
}

/* Icon animations */
.slide i.fa {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Update image table for single image */
.image-table {
  width: 90%;
  margin: 1em auto;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navigation dots */
.dots-container {
  text-align: center;
  margin: 0 0 15px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #5693d3;
}

/* Login/Signup Form Styles */
.wrapper .title-text {
  display: flex;
  width: 200%;
}
.wrapper .title {
  width: 50%;
  font-size: 28px; /* Reduced from 35px */
  font-weight: 600;
  text-align: center;
  color: #2c5282; /* Updated to match new scheme */
  transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
}
.wrapper .slide-controls {
  position: relative;
  display: flex;
  height: 50px;
  width: 100%;
  overflow: hidden;
  margin: 30px 0 10px 0;
  justify-content: space-between;
  border: 1px solid lightgrey;
  border-radius: 15px;
  z-index: 999 !important;
  isolation: isolate;
}
.slide-controls .slide {
  height: 100%;
  width: 100%;
  color: #000; /* Changed to black for better visibility */
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  line-height: 48px;
  cursor: pointer;
  z-index: 1;
  transition: all 0.6s ease;
}
.slide-controls label.signup {
  color: #000;
}
.slide-controls .slider-tab {
  position: absolute;
  height: 100%;
  width: 50%;
  left: 0;
  z-index: 0;
  border-radius: 15px;
  background: linear-gradient(180deg, #3182ce 0%, #2c5282 50%, #1e4a8a 100%);
  transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
}
.slide-controls label.slide.login,
.slide-controls label.slide.signup {
  display: block;
  width: 100%;
  text-align: center;
}
input[type="radio"] {
  display: none;
}
#signup:checked ~ .slider-tab {
  left: 50%;
}
#signup:checked ~ label.signup {
  color: #fff;
  cursor: default;
  user-select: none;
}
#signup:checked ~ label.login {
  color: #000;
}
#login:checked ~ label.signup {
  color: #000;
}
#login:checked ~ label.login {
  color: #fff; /* Changed to white for better visibility when active */
  cursor: default;
  user-select: none;
}
.wrapper .form-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.form-container .form-inner {
  display: flex;
  width: 200%;
  transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
}
.form-container .form-inner form {
  width: 50%;
  transition: none; /* Remove transition from individual forms */
}

/* Prevent form elements from overflowing into each other */
.form-container .form-inner form.signup,
.form-container .form-inner form.login {
  overflow: hidden; /* Clip any overflow from elements */
}




.form-inner form .field {
  height: 50px;
  width: 100%;
  margin-top: 20px;
}



.form-inner form .field input {
  height: 100%;
  width: 100%;
  outline: none;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 12px;
  border: 2px solid rgba(146, 188, 227, 0.3);
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.form-inner form .field input:focus {
  border-color: #3182ce;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
  transform: translateY(-2px);
}
.form-inner form .field input::placeholder {
  color: rgba(44, 82, 130, 0.5);
  transition: all 0.3s ease;
  font-weight: 400;
}
form .field input:focus::placeholder {
  color: #3182ce;
}
.form-inner form .pass-link {
  margin-top: 5px;
}
.form-inner form .signup-link {
  text-align: center;
  margin-top: 30px;
}
.form-inner form .pass-link a,
.form-inner form .signup-link a {
  color: #3182ce;
  text-decoration: none;
}
.form-inner form .pass-link a:hover,
.form-inner form .signup-link a:hover {
  text-decoration: underline;
}
form .btn {
  height: 54px;
  width: 100%;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  box-shadow: 0 3px 8px rgba(49, 130, 206, 0.25), 
              0 1px 2px rgba(0, 0, 0, 0.1),
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(44, 82, 130, 0.3);
}

form .btn:hover {
  background: linear-gradient(135deg, #2a74bd 0%, #245199 100%);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3), 
              0 2px 4px rgba(0, 0, 0, 0.1),
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

form .btn:active {
  background: linear-gradient(135deg, #2a74bd 0%, #245199 100%) !important;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(49, 130, 206, 0.2), 
              0 1px 2px rgba(0, 0, 0, 0.1),
              inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

form .btn:focus {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%) !important;
  outline: none;
}

/* Remove the sliding layer effect completely */
form .btn .btn-layer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* Force button styles during all states to prevent white background */
form .btn,
form.login .btn,
form.signup .btn {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%) !important;
  position: relative !important;
}

/* Lighter blue on active/click state */
form .btn:active,
form .btn:focus,
form.login .btn:active,
form.signup .btn:active {
  background: linear-gradient(135deg, #5fa3de 0%, #4d7cb8 100%) !important;
  position: relative !important;
}

/* Ensure submit button maintains styles during submission */
form .btn input[type="submit"],
form .btn input[type="submit"]:hover,
form .btn input[type="submit"]:active,
form .btn input[type="submit"]:focus,
form .btn input[type="submit"]:disabled,
form .btn input[type="submit"][disabled] {
  background: transparent !important;
  color: #ffffff !important;
}

/* Disable animations that might interfere */
form.login .btn,
form.login .btn *,
form.signup .btn,
form.signup .btn * {
  animation: none !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}
form .btn input[type="submit"] {
  height: 100%;
  width: 100%;
  z-index: 2;
  position: relative;
  background: none;
  border: none;
  color: #ffffff;
  padding: 0; /* Equal padding on all sides */
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

form .btn input[type="submit"]:hover {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ensure button stays visible during form submission */
form .btn input[type="submit"]:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  color: #ffffff !important;
  background: none !important;
}

/* Override any inline styles during submission */
form .btn {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%) !important;
}

form .btn input[type="submit"] {
  color: #ffffff !important;
}

/* Prevent white background during loading */
form.login .btn,
form.signup .btn {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%) !important;
}

/* Password fields */
.password {
  width: 90%;
  padding: 15px 12px;
  margin-bottom: 5px;
  border: 1px solid #e5e5e5;
  border-bottom: 2px solid #ddd;
  background: rgba(255,255,255,0.2) !important;
  color: #555;
}
.unmask {
  position: absolute;
  right: 5%;
  top: 25%;
  width: 25px;
  height: 25px;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  font-family: 'fontawesome';
  font-size: 14px;
  line-height: 24px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.unmask:before {
  content: "\f06e";
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background: rgba(205,205,205,0.2);
  z-index: 1;
  color: #aaa;
  border: 2px solid;
  border-radius: 50%;
}
.password[type="text"] + .unmask:before {
  content: "\f070";
  background: rgba(105,205,255,0.2);
  color: #06a;
}

/* Password validation styling */
small {
  font-style: italic;
  font-size: 14px;
  padding-top: 5px;
  color: #444;
  font-weight: bold;
}

#valid {
  font-size: 14px;
  padding-top: 8px;
  color: #daa;
  height: 15px;
  font-weight: bold;
  text-align: center;
}

#emailError {
  font-size: 14px;
  padding-top: 5px;
  color: #daa;
  font-weight: bold;
  text-align: center;
}

#strong {
  height: 20px;
  font-size: 14px;
  color: #daa;
  text-transform: capitalize;
  background: rgba(205,205,205,0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#strong span {
  display: block;
  box-shadow: 0 0 0 #fff inset;
  height: 100%;
  transition: all 0.8s;
}
#strong .weak {
  box-shadow: 5em 0 0 #daa inset;
  color: #DDAAAAFF;
  text-align: center;
  font-weight: bold;
}
#strong .medium {
  color: #936323;
  box-shadow: 10em 0 0 #da6 inset;
  text-align: center;
  font-weight: bold;
}
#strong .strong {
  color: #595;
  box-shadow: 50em 0 0 #ada inset;
  text-align: center;
  font-weight: bold;
}

form p {
  position: relative;
  text-align: center;
}

.small {
  width: 95%;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  padding-top: 150px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.overflowHidden {
  overflow: hidden !important;
}

.modal-content {
  position: relative;
  color: #333;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #888;
  width: 400px;
  border-radius: 8px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #ffffff 0%, #f9fbff 50%, #f5f9ff 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.close {
  color: #2c5282;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.close:hover,
.close:focus {
  color: #1e4a8a;
  text-decoration: none;
  cursor: pointer;
}

/* Mobile Login/Signup Toggle Buttons - Pill style matching desktop */
.mobile-tabs-container {
  display: none !important; /* Hidden by default, shown only on mobile */
  background: #f0f4f8;
  border-radius: 25px;
  padding: 4px;
  margin: 20px 0 22px 0;
  gap: 0;
}

.mobile-form-toggle {
  flex: 1;
  background: transparent !important;
  color: #000 !important;
  padding: 10px 20px !important;
  text-align: center;
  border-radius: 21px !important;
  cursor: pointer;
  font-weight: 600;
  border: none !important;
  font-size: 15px !important;
  letter-spacing: 0.2px !important;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-form-toggle:hover {
  opacity: 0.8;
}

.mobile-form-toggle.active {
  background: linear-gradient(135deg, #2f6fb6, #4fa1dc) !important;
  color: #fff !important;
}


/* Style for the form container when a form is active */
.form-container .form-inner form.active-form {
  display: block;
  max-height: 1000px; /* Large enough to accommodate any form */
  opacity: 1;
  margin-top: 0;
  padding: 0;
  padding-top: 5px;
  position: relative; /* For close button positioning */
}

/* Ensure mobile tabs container is hidden on desktop */
@media (min-width: 1051px) {
  .mobile-tabs-container {
    display: none !important;
  }
}

/* Intermediate width handling - when slideshow and wrapper are stacked */
@media (min-width: 769px) and (max-width: 1050px) {
  .wrappercontainer {
    flex-direction: column;
    align-items: center;
  }
  
  .header-banner {
    max-width: 630px; /* Match slideshow max-width (600px) + its container padding */
    margin: 0 auto 30px auto;
  }
  
  .main-content-wrapper {
    max-width: 630px; /* Match slideshow width when stacked */
  }
  
  /* Make wrapper match slideshow width when stacked */
  .wrapper {
    max-width: 600px; /* Match slideshow max-width */
    min-width: unset; /* Remove min-width constraint */
  }
  
  /* Use mobile form layout in this range */
  /* Hide the slide controls (tabs) */
  .wrapper .slide-controls {
    display: none;
  }

  /* Show the mobile toggle buttons container */
  .mobile-tabs-container {
    display: flex !important;
  }

  /* Change form container behavior */
  .form-container .form-inner {
    display: block;
    width: 100%;
    transition: none;
  }

  .form-container .form-inner form {
    width: 100%;
    display: none; /* Hide all forms by default */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
  }

  /* Show the form when it has the active-form class */
  .form-container .form-inner form.active-form {
    display: block;
    max-height: 1000px;
    opacity: 1;
    margin-top: 0;
    padding: 0;
    padding-top: 5px;
    animation: slideDown 0.4s ease;
  }


  /* Remove margin transitions */
  .form-inner form {
    margin-left: 0 !important;
  }

  /* Hide the title-text */
  .wrapper .title-text {
    display: none;
  }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  /* Typography size adjustments */
  h1 { font-size: 28px !important; }
  h2 { font-size: 21px; }
  
  /* Header banner adjustments */
  .header-banner {
    padding: 0 10px !important;
    max-width: 100%; /* Full width on mobile */
  }
  
  .header-content {
    padding: 20px 20px !important;
  }
  
  /* Main content wrapper adjusts for mobile */
  .main-content-wrapper {
    max-width: 100%;
  }

  /* Text elements */
  .tabsText {
    text-align: center !important;
    font-size: 14px;
    padding: 0 10px;
    line-height: 1.5;
  }

  /* Wrapper adjustments */
  .wrapper, .slideshow-container {
    max-width: 95%;
    min-width: 300px;
  }

  /* Topnav adjustments */
  .topnav {
    height: 40px !important;
  }

  .topnav img {
    max-height: 28px !important;
    margin-right: 10px !important;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    max-width: 400px;
    padding: 30px;
  }

  .close {
    top: 5px;
    right: 15px;
    font-size: 35px;
  }

  /* Title text smaller on mobile */
  .wrapper .title {
    font-size: 24px;
  }

  /* Make dots smaller on mobile */
  .dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }

  /* Hide the slide controls (tabs) on mobile */
  .wrapper .slide-controls {
    display: none;
  }

  /* Show the mobile toggle buttons container */
  .mobile-tabs-container {
    display: flex !important;
  }

  /* Change form container behavior for mobile */
  .form-container .form-inner {
    display: block;
    width: 100%;
    transition: none;
  }

  .form-container .form-inner form {
    width: 100%;
    display: none; /* Hide all forms by default */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
  }

  /* Show the form when it has the active-form class */
  .form-container .form-inner form.active-form {
    display: block;
    max-height: 1000px; /* Large enough to accommodate any form */
    opacity: 1;
    margin-top: 0;
    padding: 0;
    padding-top: 10px;
    animation: slideDown 0.4s ease;
  }


  /* Remove margin transitions that were used for horizontal sliding */
  .form-inner form {
    margin-left: 0 !important;
  }

  .title-text .login,
  .title-text .signup {
    margin-left: 0 !important;
  }

  /* Animation for the form slide down */
  @keyframes slideDown {
    from {
      max-height: 0;
      opacity: 0;
      margin-top: 0;
    }
    to {
      max-height: 1000px;
      opacity: 1;
      margin-top: 5px;
    }
  }

  @keyframes slideUp {
    from {
      max-height: 1000px;
      opacity: 1;
      margin-top: 5px;
    }
    to {
      max-height: 0;
      opacity: 0;
      margin-top: 0;
    }
  }

  /* Hide the title-text on mobile as it takes up space */
  .wrapper .title-text {
    display: none;
  }

  /* Add some space between forms and other elements */
  .wrapper {
    padding: 20px 15px;
  }

  /* Hide the old ::before pseudo-element since we're using a real div now */
  .form-container .form-inner form.active-form::before {
    display: none;
  }

}

@media (max-width: 480px) {
  .wrappercontainer {
    flex-direction: column;
    align-items: center;
  }

  .wrapper, .slideshow-container {
    max-width: 95%;
    min-width: 300px;
  }

  h2 { font-size: 20px; }
  .tabsText { font-size: 13px; padding: 0 8px; width: 95%; }
  .modal-content { padding: 20px; }
  .close { top: 7px; right: 10px; font-size: 33px; }

  /* Smaller images on mobile */
  .evdimgs-large {
    max-width: 95%;
  }
}

@media (max-width: 375px) {
  .wrapper, .slideshow-container {
    padding: 20px 15px;
  }

  .form-inner form .field input {
    font-size: 15px;
  }

  form .btn input[type="submit"] {
    font-size: 18px;
  }

  /* Title text even smaller on tiny devices */
  .wrapper .title {
    font-size: 22px;
  }

  /* Adjust slides padding */
  .slide {
    padding: 15px 10px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; height: 10px; }
::-webkit-scrollbar-track { background: #FFF; }
::-webkit-scrollbar-thumb { background: #c3daff; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #9caecc; }


/* =========================================================
   vismani Front Page Refresh (non-breaking, CSS-only overrides)
   - Keeps existing class names & JS hooks intact
   - Modernizes spacing, typography, shadows, and inputs
   ========================================================= */

:root{
  --vm-text: #1f2937;
  --vm-muted: rgba(31,41,55,.72);
  --vm-brand: #2c5282;
  --vm-brand-2: #3182ce;
  --vm-card-bg: rgba(255,255,255,.92);
  --vm-card-border: rgba(146,188,227,.28);
  --vm-shadow: 0 18px 50px rgba(44,82,130,.14), 0 6px 16px rgba(17,24,39,.06);
}

/* Overall page rhythm */
body{
  padding-top: 48px;
  padding-bottom: 40px;
  color: var(--vm-text);
}

/* Header */
.header-content{
  padding: 22px 34px;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(44,82,130,.12), 0 5px 14px rgba(0,0,0,.05);
  border: 1px solid rgba(146,188,227,.35);
}

.brand-title{
  font-size: 52px;
  line-height: 1;
  color: var(--vm-brand);
  margin: 0;
  font-weight: 400; /* keep brand feel */
  letter-spacing: -1px;
  font-family: Fredoka, sans-serif; /* DO NOT CHANGE per requirement */
}

.brand-subtitle{
  font-size: 16px;
  color: rgba(44,82,130,.78);
  margin-top: 10px;
  font-weight: 500;
}

/* Two-column layout: tighter, more modern */
.wrappercontainer{
  gap: 26px;
}

/* Cards */
.slideshow-container,
.wrapper{
  background: var(--vm-card-bg);
  border: 1px solid var(--vm-card-border);
  box-shadow: var(--vm-shadow);
}

/* Slideshow */
.slideshow-container{
  padding-bottom: 16px;
}

.slideshow-container .slide{
  padding: 30px 30px 22px 30px;
}

.slideshow-container h2{
  text-align: left;
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.tabsText{
  text-align: left;
  color: var(--vm-muted);
  font-size: 15px;
  padding: 0;
}

.image-table{
  width: 100%;
  margin: 18px 0 8px;
  padding: 0;
}

.evdimgs-large{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Dots: cleaner */
.dots-container{
  margin: 6px 0 10px;
}

.dot{
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: rgba(44,82,130,.22);
}

.dot.active{
  background-color: var(--vm-brand-2);
}

/* Auth card */
.wrapper{
  padding: 30px;
}

/* Tabs (Login / Signup) — more contemporary */
.wrapper .slide-controls{
  border-radius: 16px;
  border: 1px solid rgba(146,188,227,.35);
  background: rgba(255,255,255,.75);
}

.slide-controls .slide{
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
}

.slide-controls .slider-tab{
  border-radius: 14px;
}

/* Inputs */
.form-inner form .field input,
.password{
  border-radius: 14px;
  border: 1px solid rgba(146,188,227,.38);
  background: rgba(255,255,255,.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.form-inner form .field input:focus{
  transform: none; /* avoid jumpy feel */
}

/* Buttons */
form .btn{
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(49,130,206,.22), 0 2px 6px rgba(0,0,0,.08);
}

form .btn input[type="submit"]{
  font-size: 16px;
  letter-spacing: .6px;
}

/* Disclaimer banner (used on homepage) */
.disclaimer-banner{
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(234,179,8,.45); /* amber */
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
}

.disclaimer-banner p{
  margin: 0;
  color: rgba(120,53,15,.95);
  font-size: 14px;
  line-height: 1.6;
}

.disclaimer-banner strong{
  font-weight: 700;
}

/* Mobile: keep existing behavior but improve spacing */
@media (max-width: 768px){
  body{ padding-top: 28px; }
  .brand-title{ font-size: 40px; }
  .header-content{ padding: 18px 18px; border-radius: 20px; }
  .slideshow-container .slide{ padding: 22px 20px 18px; }
  .wrapper{ padding: 22px 18px; }
  .tabsText{ text-align: left !important; }
}

/* ============================================
   GLASSMORPHISM MODERN DESIGN (January 2026)
   ============================================ */

/* Background with image */
body {
  background-color: #c8dff3;
  background-image: url('/grafx/bg/bg_small.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Header - centered, clean, no background */
.header-banner {
  text-align: center;
  padding: 50px 20px 30px;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.header-content {
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.brand-title {
  font-size: 56px;
  letter-spacing: 0.5px;
  color: #244b7d;
  margin: 0;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 18px;
  color: #4c6b96;
  margin-top: 6px;
  font-weight: 600;
}

/* Main Container - Grid Layout */
.main-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.wrappercontainer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 0;
}

/* Glassmorphism Cards */
.slideshow-container,
.wrapper {
  background: rgba(255,255,255,0.7) !important;
  background-color: rgba(255,255,255,0.7) !important;
  background-image: none !important;
  border-radius: 20px !important;
  padding: 36px !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  opacity: 1 !important;
}

/* Slideshow Slide Styling */
.slide h2 {
  font-size: 20px !important;
  margin-bottom: 14px !important;
  color: #244b7d !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.slide .tabsText {
  font-size: 16px;
  line-height: 1.6;
  color: #425a7a;
  margin-bottom: 28px;
  text-align: center;
}

/* Feature Box with Gradient Background */
.feature-box {
  background: linear-gradient(135deg, #2f6fb6, #4fa1dc);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  min-height: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.feature-box:has(.feature-image) {
  padding: 0;
  background: none;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  color: #fff;
}

.feature-box h3 {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.feature-image {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  border: 3px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Legacy image-table class for backwards compatibility */
.image-table {
  background: linear-gradient(135deg, #2f6fb6, #4fa1dc);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-table img {
  max-width: 100%;
  border-radius: 12px;
}

/* Navigation Dots */
.dots-container {
  text-align: center;
  padding-top: 20px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(47, 111, 182, 0.3);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
  background-color: #2f6fb6;
  transform: scale(1.2);
}

/* Login/Signup Toggle - Pill Shaped Buttons - High Specificity */
.wrapper .slide-controls,
.wrapper .form-container .slide-controls {
  display: flex !important;
  background: #f0f4f8 !important;
  border-radius: 25px !important;
  padding: 4px !important;
  margin: 20px 0 22px 0 !important;
  position: relative !important;
  gap: 4px !important;
  height: auto !important;
  border: none !important;
  overflow: visible !important;
}

.wrapper .slide-controls label,
.wrapper .slide-controls label.slide,
.wrapper .slide-controls label.slide.login,
.wrapper .slide-controls label.slide.signup {
  flex: 1 !important;
  padding: 10px 20px !important;
  text-align: center !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  z-index: 2 !important;
  position: relative !important;
  color: #5a6f8f !important;
  transition: all 0.3s ease !important;
  border-radius: 20px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  background: transparent !important;
}

.wrapper .slide-controls input[type="radio"] {
  display: none !important;
}

.wrapper .slide-controls #login:checked ~ label.login,
.wrapper .slide-controls #signup:checked ~ label.signup {
  color: #fff !important;
  background: linear-gradient(135deg, #2f6fb6, #4fa1dc) !important;
}

.wrapper .slide-controls .slider-tab,
.slider-tab {
  display: none !important;
}

/* Form Fields */
.field {
  margin-bottom: 18px !important;
}

.field p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Email Error - only take up space when shown */
#emailError {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  display: none;
}

#emailError:not(:empty) {
  display: block !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d7e0ec;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #2f6fb6;
}

.field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6f8f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field select option:disabled {
  color: #999;
  font-style: italic;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.custom-select-display {
  width: 100%;
  padding: 14px;
  padding-right: 40px;
  border-radius: 12px;
  border: 1px solid #d7e0ec;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  height: 48px;
  display: flex;
  align-items: center;
}

.custom-select-display.placeholder {
  color: #999;
}

.custom-select:focus .custom-select-display,
.custom-select.open .custom-select-display {
  border-color: #2f6fb6;
}

.custom-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #5a6f8f;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  margin-top: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-select.open .custom-select-options {
  max-height: 300px;
  opacity: 1;
  overflow-y: auto;
}

.custom-select-option {
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.custom-select-option:hover:not(.disabled) {
  background-color: #f0f4f8;
}

.custom-select-option.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.custom-select-option:first-child {
  border-radius: 12px 12px 0 0;
}

.custom-select-option:last-child {
  border-radius: 0 0 12px 12px;
}

/* Login/Signup Submit Button - High Specificity Override */
.wrapper .form-inner form .field.btn input[type="submit"],
.wrapper form.login .field.btn input[type="submit"],
.wrapper form.signup .field.btn input[type="submit"],
form .btn input[type="submit"] {
  width: 100% !important;
  padding: 14px !important;
  border-radius: 12px !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #3574b8, #4a9fd8) !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  height: auto !important;
  z-index: 2 !important;
}

.wrapper .form-inner form .field.btn input[type="submit"]:hover,
form .btn input[type="submit"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(47, 111, 182, 0.25) !important;
  background: linear-gradient(135deg, #3574b8, #4a9fd8) !important;
}

.wrapper .form-inner form .field.btn input[type="submit"]:disabled,
form .btn input[type="submit"]:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background: linear-gradient(135deg, #3574b8, #4a9fd8) !important;
}

.wrapper .form-inner form .field.btn input[type="submit"]:active,
.wrapper .form-inner form .field.btn input[type="submit"]:focus,
form .btn input[type="submit"]:active,
form .btn input[type="submit"]:focus {
  background: linear-gradient(135deg, #3574b8, #4a9fd8) !important;
  color: #fff !important;
}

.btn-layer {
  display: none !important;
}

/* Override parent btn container - remove white space */
.wrapper .form-inner form .field.btn,
.wrapper form.login .field.btn,
.wrapper form.signup .field.btn,
.form-inner form .field.btn,
form .field.btn,
form .btn {
  background: transparent !important;
  height: auto !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 0 !important;
  margin-top: 20px !important;
  margin-bottom: 3px !important;
  overflow: hidden !important;
}

/* Reduce spacing after signup button */
form.signup .field.btn + br {
  display: none !important;
}

/* Signup Link */
.signup-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #5a6f8f;
}

.signup-link a {
  color: #2f6fb6;
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Disclaimer Banner - Modern Styling */
.disclaimer-banner {
  max-width: 1100px;
  margin: 30px auto 10px;
  background: #fff4dc;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14px;
  color: #7a5a1f;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: none;
}

.disclaimer-banner p {
  margin: 0;
}

/* Password Strength Indicators */
#strong, #valid {
  font-size: 13px;
  margin: 8px 0;
}

.small {
  color: #5a6f8f;
  font-size: 12px;
}

/* Responsive Design - Mobile */
@media (max-width: 900px) {
  .wrappercontainer {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    max-width: 100% !important;
    padding: 0 15px !important;
  }

  .slideshow-container,
  .wrapper {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 24px !important;
  }

  .brand-title {
    font-size: 42px;
  }

  .brand-subtitle {
    font-size: 16px;
  }

  .slide h2 {
    font-size: 20px;
  }
}

/* Hide desktop pill toggles in mobile mode */
@media (max-width: 1050px) {
  .wrapper .slide-controls,
  .wrapper .form-container .slide-controls,
  .form-container .slide-controls,
  .slide-controls {
    display: none !important;
  }
}

