/* ========== BASE (Mobile First: <768px) ========== */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #74d0f3;
  min-height: 100vh;
  margin: 0;
  font-family: 'Franklin Gothic Demi', sans-serif;
}

.auth-container {
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
  width: 70%;
  padding: 3rem 5%;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
  gap: 1rem;
  font-size: 1.5rem;
}

.auth-container h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  text-align: left;
}

.head {
  display: flex;
  flex-direction: column;
}

.headLogo {
  width: 40%;
  height: auto;
  margin-bottom: -2rem;
}

#loginForm,
#registerForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#registerForm{
  gap: 0.75rem;
}

input {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 1.2rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  box-sizing: border-box;
}

input:focus {
  border-color: #74d0f3;
}

button {
  width: 100%;
  background-color: #2e63af;
  border: none;
  color: #f0f0f0;
  font-weight: 600;
  padding: 1.2rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color .2s ease;
}

button:hover {
  background-color: #74d0f3;
}

p {
  margin-top: 1rem;
  font-size: 1rem;
}

a {
  color: #2e63af;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#msg {
  color: #dc2626;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ========== PASSWORD WRAPPER ========== */
.password-wrapper {
  position: relative;
  width: 100%;
}



/* Eye toggle */
.password-wrapper .toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0.6;
  width: 4%;
  z-index: 5;
}

.password-wrapper .toggle:hover {
  opacity: 1;
}

/* Remove native password reveal buttons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-password-toggle-button,
input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
}

/* iOS autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
  -webkit-text-fill-color: #000 !important;
}

input:-webkit-autofill::placeholder {
  -webkit-text-fill-color: #9ca3af !important;
}



/* ========== TABLETS (min-width: 768px) ========== */
@media (min-width: 768px) {
  .auth-container {
    width: 65%;
    max-width: 450;
    padding: 4rem 6%;
    font-size: 1.5rem;
  }

  .auth-container h2 {
    font-size: 4rem;
    margin-bottom: 0;
  }

  .headLogo {
    width: 30%;
    margin-bottom: -1rem;
  }
#loginForm {
  gap: 1rem;
}  

  input {
    font-size: 2rem;
    padding: 1.5rem;
  }

  button {
    font-size: 2rem;
    padding: 1.5rem;
  }

  .password-wrapper .toggle {
    font-size: 2rem;
    right: 1.2rem;
  }  
}


/* ========== DESKTOPS (min-width: 1025px) ========== */
@media (min-width: 1025px) {
  .auth-container {
    width: 30%;
    max-width:350px;
    padding: 2.5rem;
    font-size: 1.1rem;
  }

  .auth-container h2 {
    font-size: 2.2rem;
  }

  .headLogo {
    width: 25%;
  }

  input {
    font-size: 1rem;
    padding: 0.75rem;
  }

  button {
    font-size: 1rem;
    padding: 0.75rem;
  }

    .password-wrapper .toggle {
    font-size: 1.2rem;
    right: 0.8rem;
  }
}





