body {
  margin: 0;
  padding: 1rem; /* Add padding so card isn't flush against screen edges */
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
  display: flex;
  flex-direction: column; /* Important: stack children vertically */
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}


html, body {
  height: auto;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}



  /* Animated SVG Wave Backgrounds */
  .wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transform: rotate(-10deg) scale(1.2);
  }

  .wave-background svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .wave1 {
  opacity: 0.35;
  animation: waveMove1 3s ease-in-out infinite alternate;
  fill: #FFD700;
}

.wave2 {
  opacity: 0.3;
  animation: waveMove2 4s ease-in-out infinite alternate;
  fill: #FFC107;
}

.wave3 {
  opacity: 0.25;
  animation: waveMove3 5s ease-in-out infinite alternate;
  fill: #E6BE8A;
}

@keyframes waveMove1 {
  0% {
    transform: rotate(-10deg) scale(1.2) translateX(0) translateY(0);
  }
  100% {
    transform: rotate(-10deg) scale(1.2) translateX(-10%) translateY(-35%);
    /* highest vertical lift */
  }
}

@keyframes waveMove2 {
  0% {
    transform: rotate(-10deg) scale(1.2) translateX(0) translateY(0);
  }
  100% {
    transform: rotate(-10deg) scale(1.2) translateX(-20%) translateY(-25%);
    /* mid vertical lift */
  }
}

@keyframes waveMove3 {
  0% {
    transform: rotate(-10deg) scale(1.2) translateX(0) translateY(0);
  }
  100% {
    transform: rotate(-10deg) scale(1.2) translateX(-30%) translateY(-15%);
    /* smallest vertical lift */
  }
}

.login-card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 400px;
  margin: 10px auto 2rem; /* 10px from top, auto left/right, 2rem bottom */
  box-sizing: border-box;
  position: relative;
  z-index: 1;

  /* Remove height constraints */
  height: auto;
  max-height: none;

  /* Prevent internal scrolling */
  overflow: visible;
}

/* For large screens, make the card wider */
@media (min-width: 1200px) {
  .login-card {
    max-width: 600px;  /* increase width substantially */
    padding: 3rem 3rem; /* add more padding for spaciousness */
  }
}


  

  .login-card img.logo {
    width: 200px;
    margin: 0 auto 1rem;
    display: block;
  }

  .login-card h2 {
    color: #B8860B;
  }

  .login-card form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .login-card form .login-button {
    margin-bottom: 0.2rem; /* Same as .create-account-button’s margin-top */
  }
  

  .login-card label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
    margin-left: 0.1rem; /* aligns it with the input box */
  }

  .login-card form > div {
    margin-bottom: 0.5rem;
  }

  .login-card input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .login-card button {
    background-color: #DAA520;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .login-card button:hover {
    background-color: #B8860B;
  }

  .form-error {
    color: red;
    font-size: 0.875rem;
    text-align: left;
  }

  @media (max-width: 768px) {
  
    .login-card img.logo {
      width: 200px;
      margin: 0 auto 1rem;
    }
  
    .login-heading {
      font-size: 1.5rem;
    }
  
    .login-card input,
    .login-card button {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 480px) {
    .login-card {
      padding: 1.5rem 1rem;
      max-width: 95%;
    }
  
    .login-card input,
    .login-card button {
      font-size: 1rem;
    }
  
    .login-button {
      font-size: 1.1rem;
    }
  }
  
  
  


/* Login heading styling */
.login-heading {
    text-align: left;
    color: black; /* Changed to black */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem; /* Added spacing below heading */
  }
  
  /* Forgot password link */
  .forgot-password {
    text-align: right;
    margin-top: 0.25rem;
  }
  
  .forgot-password a {
    color: #B8860B;
    font-size: 0.875rem;
    text-decoration: none;
  }
  
  .forgot-password a:hover {
    text-decoration: underline;
  }
  
  /* Remember Me checkbox */
  .remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    margin-left: 0.1rem;
  }
  
  /* Bigger Log In button text */
  .login-button {
    font-size: 1.25rem;
  }
  
  /* Adjust Create Account button styling */
.create-account-button {
    display: inline-block;
    text-align: center;
    border: 1px solid grey;
    border-radius: 6px;
    padding: 10px 20px;
    margin-top: 0.2rem;
    text-decoration: none;
  }
  
  .create-account-button span {
    color: #DAA520;
  }
  
  .create-account-button:hover {
    background-color: #DAA520;
    color: white;
  }
  
  .create-account-button:hover span {
    color: white;
  }

  .create-account-button .text-black {
    color: grey;
  }
  
  .create-account-button .text-gold {
    color: #DAA520;
    font-weight: bold;
  }
  

  /* Larger input fields */
input[type="text"],
input[type="password"] {
  padding: 12px 15px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 2px;
}

.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.2rem 0; /* Reduced spacing */
  }
  
  .or-separator::before,
  .or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
  }
  
  .or-separator:not(:empty)::before {
    margin-right: 0.5em;
  }
  
  .or-separator:not(:empty)::after {
    margin-left: 0.5em;
  }
  
  .or-separator span {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
  }
  
  .login-card button.or-button {
    background-color: white !important;      /* override gold bg */
    color: black !important;                  /* override white text */
    border: 1px solid #ccc !important;       /* grey border by default */
    padding: 12px 20px !important;            /* adjust padding if needed */
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    /* margin-top: 0.001rem !important; */
  }

  /* On hover or focus, instantly change border color to gold */
.login-card button.or-button:hover,
.login-card button.or-button:focus {
  border-color: #FFD700 !important; /* gold color */
  outline: none;                    /* remove default focus outline */
}
  
  /* Remove top margin for first button so it doesn't add extra space above */
  .login-card button.or-button:first-child {
    margin-top: 0 !important;
  }
  
  .login-card button.or-button:hover {
    background-color: white !important;      /* keep white bg on hover */
    border-color: #DAA520 !important;        /* gold border on hover */
    color: black !important;                  /* keep black text */
  }
  
  .text-gold {
    color: #DAA520; /* inherit black base */
    font-weight: bold;
  }
  
  .password-input {
    padding-right: 40px; /* enough space for the eye button */
    position: relative;
  }
  
  #togglePassword {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
  }
  
  .password-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
  }

  .password-wrapper input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem; /* right padding for icon */
    font-size: 1rem;
    height: 2.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  
  .field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 1.2rem;
    user-select: none;
    z-index: 2;
    pointer-events: auto;
    line-height: 1;
    height: 1.2em;
  
    /* remove unnecessary flex, which doesn’t apply here */
  }
  
  .field-icon:hover {
    color: black !important;;
  }

  .username-input-button-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  
  /* Make the username input and the generate button the same height */
  .username-input-button-wrapper input[type="text"],
  .username-input-button-wrapper input[type="email"],
  .username-input-button-wrapper input[type="password"] {
    height: 38px; /* adjust to match your input height */
    font-size: 1rem;
    padding: 0 10px;
  }

  .input-wrapper input {
    height: 38px;
    font-size: 1rem;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  
  .generate-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;             /* keep width as you like */
    height: 2.75rem;         /* match input height */
    background-color: #FFD700;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: black;
    font-size: 0.8rem;       /* you can tweak this */
    padding: 0;              /* no internal padding to keep height consistent */
    border-radius: 2px;
    user-select: none;
  }
  
  .generate-button i {
    font-size: 0.8rem;
    margin-top: 2px;
  }
  
  /* Mobile-specific overrides */
  @media (max-width: 600px) {
    .generate-button {
      font-size: 0.1rem;  /* smaller "Generate" text */
    }
  
    .generate-button i {
      font-size: 1rem;  /* bigger icon */
    }
  }
  

.login-card form input[type="text"],
.login-card form input[type="email"],
.login-card form input[type="password"] {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.75rem; /* right padding for icon space */
  font-size: 1rem;
  height: 2.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


.password-wrapper {
  position: relative;
  width: 100%;
  margin-top: 0.5rem;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.75rem; /* vertical + right padding for eye */
  font-size: 1rem;
  height: 2.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  line-height: 1.5; /* or match padding/height */
}

.password-wrapper .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px; /* same as field-icon */
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem; /* match field-icon */
  color: #666;
  user-select: none;
  display: none; /* hidden by default */
  line-height: 1;
  height: 1.2em;
}

