/* Reset some default browser styles */
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Helvetica', sans-serif;
  color: var(--color-text);
}

html {
  font-size: 16px; /* Default font size for larger screens */
}


.container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
  max-width: 400px;
  width: 90%;
  box-sizing: border-box;
}

.icon-title-box {
  position: absolute; 
  top: 20px; 
  left: 250px; 
  padding: 10px 20px; /* Increased left and right padding */
  font-size: 18pt;
  font-weight: normal;
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff; /* Optional: to match your design */
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  gap: 20px; /* Added gap between flex items */
}

.icon-title-box img {
  margin: 5px 0;
}

.orgLogo {
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

.orgName {
  font-weight: 300;
  text-align: center;
  margin-top: 1rem;
  font-size: 3.0rem;
  color: var(--color-primary);
}

.orgName .flon {
  color: var(--color-primary);
}

.orgName .master {
  color: var(--color-accent);
}


.BannerTitle {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.0rem;
  font-size: 1.5rem;
  font-weight: normal;
}

.inputs {
  margin-top: 2rem;
}

.inputs label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.inputs input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  box-sizing: border-box; 
}

/* Style the input wrapper */
.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}


/* Style the clear button */
.clear-button {
  display: none;
  position: absolute;
  cursor: pointer;
  font-size: 20px;
  right: 10px;
  top: 25%;
  transform: translateY(-50%);
}

button {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--color-accent-hover);
}

body {
  background: var(--background-gradient3);
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--color-text);
}

.divider {
  border-top: 1px solid var(--color-secondary);
  margin: 3rem 0;
}

.forgotPassword {
  display: block;
  text-align: center;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 500px; /* Limit the width */
  position: relative; /* This allows the close button to be positioned relative to the modal, not the entire page */
}

.modal-content h2 {
  font-weight: 300;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-content p {
  text-align: center;
}


.closeButton {
  position: absolute;
  right: 20px; /* Adjust as needed */
  top: 20px; /* Adjust as needed */
  background-color: var(--color-secondary);
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
}


#popup {
  display: none;
  position: fixed;
  z-index: 100;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-bg);
  padding: 4rem;
  border-radius: var(--border-radius);
  width: 400px; /* adjust this value */
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

#popup .inputs input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}


#choose-language-text {
  position: relative;
  display: inline-block;
  text-align: left;
}

#language-dropdown {
  position: absolute;
  top: 103%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  text-align: left;
  min-width: 100px;
}

#lang-selector {
  list-style: none;
  padding: 0;
  margin: 0;
}

#lang-selector li {
  padding: 5px;
  cursor: pointer;
  color: var(--color-text);
}

#lang-selector li:hover {
  background-color: var(--color-text);
  color: var(--color-secondary);
}



.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--color-text-light);
}

.footer a {
  color: var(--color-text-light);
  text-decoration: none;
}

.footer a:visited {
  color: var(--color-text-light);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-secondary);
}



/* Media Query for iPad (both portrait and landscape) */
@media screen and (max-width: 1024px) {
  html {
    font-size: 15px; /* Adjust font size for a more balanced view */
  }

  .container {
    padding: 2rem; /* Reduce padding for a more compact design */
    width: 60%; /* Adjust container max-width for better fit */
  }

  .icon-title-box {
    top: 18px; /* Move closer to the top */
    left: 130px; /* Move closer to the left */
    padding: 8px 16px; /* Slightly reduce padding */
    font-size: 16pt; /* Decrease font size */
    gap: 15px; /* Reduce gap */
  }

  .orgName {
    font-size: 2.5rem; /* Slightly reduce font size */
    margin-top: 0.5rem; /* Adjust margin for spacing */
  }

  .BannerTitle {
    font-size: 1.3rem; /* Reduce banner title size */
    margin-top: 0.3rem; /* Adjust margin for better spacing */
    margin-bottom: 0.8rem; /* Adjust bottom margin */
  }

  .inputs {
    margin-top: 1.5rem; /* Reduce top margin */
  }

  .inputs input {
    padding: 0.4rem; /* Reduce padding */
    font-size: 0.9rem; /* Adjust font size */
  }

  .modal-content {
    padding: 15px; /* Reduce padding */
    max-width: 90%; /* Ensure modal fits smaller screens */
  }

  #popup {
    padding: 3rem; /* Reduce padding for a better fit */
    width: 350px; /* Reduce width */
  }

  #popup .inputs input {
    padding: 0.8rem; /* Reduce padding */
    font-size: 0.9rem; /* Reduce font size */
  }

  .footer {
    padding: 8px 0; /* Reduce padding */
    font-size: 0.9rem; /* Adjust font size for better spacing */
  }

  button {
    padding: 0.4rem 0.8rem; /* Reduce padding for buttons */
    font-size: 0.9rem; /* Adjust font size */
  }
}

/* When the viewport is less than 600px wide, adjust the font size */
@media (max-width: 600px) {
  html {
    font-size: 14px; 
  }
  
  .container {
    padding: 2rem; /* Reduce padding for a more compact design */
    width: 80%; /* Adjust container max-width for better fit */
  }
  
  .modal-content {
    padding: 15px; /* Reduce padding */
    max-width: 90%; /* Ensure modal fits smaller screens */
  }
  
  .divider {
    display: none !important;
  }
}