@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #0f0f0f;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  max-width: 400px;
  width: 100%;
}

.auth-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px); /* Increased blur */
  border-radius: 15px; /* Softer corners */
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.04);
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Fade-in animation */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: #ccc;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.auth-subtitle {
  font-size: 0.7rem;
  color: #aaa;
  margin-bottom: 24px;
}

.auth-message {
  background: rgba(255, 255, 255, 0.08);
  color: #f8d7da;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.65rem;
  margin-bottom: 16px;
  display: none; /* You can show via JS: display: block; */
}

.social-login {
  margin-bottom: 14px;
}

.google-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 15px;
  border-radius: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.7rem;
   text-decoration: none;
}

.google-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #888;
  margin-bottom: 24px;
  margin-top: 10px;
  font-size: 0.65rem;
}

.divider hr {
  flex-grow: 1;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
  text-align: left;
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.7rem;
  margin-bottom: 5px;
  color: #ccc;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.75rem;
  outline: none;
}

.input-group input::placeholder {
  color: #aaa;
}

/* === Consistent input style on focus === */
.input-group input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    box-shadow: none;
  }

  /* === Normalize all input backgrounds === */
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.2s ease;
}

/* === Prevent Chrome autofill style differences === */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 5000s ease-in-out 0s;
}

.input-wrapper {
    position: relative;
  }

  .input-wrapper input {
    width: 100%;
    padding-right: 40px; /* space for eye icon */
  }

  .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 0.8rem;
    transition: color 0.2s ease;
  }

  .toggle-password:hover {
    color: #fff;
  }





.auth-links {
  text-align: right;
  font-size: 0.7rem;
  margin-bottom: 20px;
}

.auth-links a {
  color: #9ccdff;
  text-decoration: none;
}

.auth-links a:hover {
    color: #00a0e4;

}

.submit-btn {
  width: 100%;
  background: #fff;
  color: #000;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.submit-btn:hover {
  background: #ccc;
  transform: translateY(-2px);
}

.bottom-link {
  margin-top: 25px;
  font-size: 0.7rem;
  color: #aaa;
}

.bottom-link a {
  color: #9ccdff;
  text-decoration: none;
}

.bottom-link a:hover {
  color: #00a0e4;
}


.input-error {
    display: block;
    color: #f28b82;
    font-size: 0.65rem;
    margin-top: 4px;
    margin-left: 2px;
  }

  /* === Fully override Chrome’s autofill styling === */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  /* your normal background */
  background-color: rgba(255, 255, 255, 0.05) !important;
  /* force the inset shadow to repaint bg */
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset !important;
  box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset !important;
  /* keep your text color */
  -webkit-text-fill-color: #fff !important;
  /* prevent the weird color‑transition flicker */
  transition: background-color 5000s ease-in-out 0s !important;
}


/* hide Edge/IE “reveal” & “clear” buttons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

/* hide WebKit’s decoration container (Chrome/Safari) */
input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
}

/* (if still visible) hide WebKit’s eye icon */
input[type="password"]::-webkit-password-eye {
  display: none !important;
}




/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
  }


body {

    padding: 10px;
  }






}


.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #aaa;
    font-size: 1.2rem;
    text-decoration: none;
    z-index: 10;
    transition: color 0.2s ease;
  }

  .close-btn:hover {
    color: #fff;
  }


  .note {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 8px;
    text-align: center;
  }


  .success-note {
    background: rgba(0, 255, 170, 0.1);
    color: #00e59f;
    border: 1px solid rgba(0, 255, 170, 0.3);
  }





