/* Global font */
body, input, button, p, h1, h2, h3, h4, h5, h6, label, a {
  font-family: 'Poppins', sans-serif !important;
}

/* Prevent zoom on input (mobile) */
input, select, textarea, button {
  font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Full screen layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #00c4e9;
  overflow-y: auto; /* ✅ enables scrolling */
  scroll-padding-top: 100px;
}



/* Main container */
main {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  flex-direction: column;
  box-sizing: border-box;

  padding: 2rem 1rem; /* breathing room */
  overflow-y: auto;   /* allow scroll */
}



/* Form wrapper */
.container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: transparent;
  text-align: center;
  box-sizing: border-box;
}

@media (max-height: 600px) {
  main {
    align-items: flex-start;
  }
}


.form-container h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.form-container p {
  margin-bottom: 1.5rem;
  color: white;
  font-size: 0.95rem;
}

.form-container input,
.form-container select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #979492;
  border-radius: 999px;
  font-size: 1rem !important;
  font-weight: bold !important;
  color: #333 !important;
  background-color: #ffffff;
  appearance: none; /* Remove native dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="gray" d="M1 1l5 5 5-5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

@media (max-width: 480px) {
  .form-container select {
    font-size: 1rem !important; /* make sure it's not shrinking */
  }
}


.form-container input::placeholder,
.form-container select::placeholder {
  color: #999;
}

.form-container input:focus,
.form-container select:focus {
  outline: none;
  border-color: #000000;
}

.form-container button {
  background-color: #979492;
  color: white;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.form-container button:hover {
  background-color: #7a7673;  /* subtle darker grey for hover */
  color: #ffffff;
  transform: translateY(-2px); /* slight lift */
}

.form-container a {
  color: black !important;
  font-weight: 600;
  text-decoration: none;
}

.form-container a:hover {
  text-decoration: underline;
}

selector::before {
  content: none !important;
}



input, select, button {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1rem !important;
  font-weight: bold !important;
  color: #333 !important;
}

::placeholder {
  font-family: 'Poppins', sans-serif !important;
  font-weight: bold !important;
  color: #aaa !important;
}

/* To make password autofill background white */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #333 !important;
}

.form-container button {
    color: #ffffff !important; /* White text explicitly */
}


.form-container p:last-of-type a {
  font-size: 0.9rem !important;
  font-weight: bold !important;
}


@media (max-width: 768px) {
  .form-container {
    padding: 1.5rem;
  }

  .form-container h1 {
    font-size: 1.5rem;
  }

  .form-container p {
    font-size: 0.9rem;
  }

  .form-container button {
    padding: 1rem;
  }
}

footer {
  display: none !important;
}

#languageLabel #languageText {
  color: white !important;
  margin-left: 10px !important;
  display: inline-block !important;
}
.language-switcher-container {
  color: white !important;
  padding-left: 30px !important; /* or margin-left */
  cursor: pointer; /* move cursor pointer here if you want */
  display: inline-block; /* if needed */
  margin-top: 10px;
}

.error-message {
  color: #fa5391 !important;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-top: -5px;
  margin-bottom: 8px;
  display: none;
  line-height: 1.4;
}

.error-message.active {
  display: block !important;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 20px;
  top: 39%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #979492;
  font-size: 1.1rem;
}

.toggle-password i {
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
}


input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}


p {
  text-align: center;
  font-size: 0.95rem;
  color: white;
}

p a {
  font-weight: bold;
  color: black;
  text-decoration: none;
  margin-left: 4px;
}


