input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #1C1C20 inset !important;
    -webkit-text-fill-color: #999999 !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #999999;
}


/* Outer Login Container */
.login-container {
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Heading */
.login-container h1 {
    font-size: 24px;
    font-family: 'Inter', sans-serif;
    gap: 16px;
    color: #FFFFFF;
    font-weight: 400;
    border: 1px #141414;
}

/* Input Wrapper with Icon */
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    background-color: #1C1C20;
    border: 0.5px solid #3B3B3B;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
}

.input-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Input Field */
.input-field {
    width: 100%;
    height: 19px;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 10px;
    /* space for icon */
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    font-family: 'Inter', sans-serif;

    gap: 10px;
}

.input-field::placeholder {
    color: #999999;
}

/* Checkbox and Forgot Password */
.options-row {
    width: 100%;
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.options-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 1px solid #464646;
    border-radius: 6px;
    background-color: transparent;
    appearance: none;
    /* Fully remove native style */
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;

}

.options-row input[type="checkbox"]:checked {
    background-color: transparent;
    position: relative;
}

.options-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 7px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);

}

.options-row .forgot-password {
    height: 20px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

/* Login Button */
.login-button {
    width: 100%;
    height: 48px;
    background-color: #514EB3;
    border: 0.5px solid #514EB3;
    border-radius: 12px;
    padding: 10px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
}


.login-arrow {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    filter: brightness(0) invert(1);
    /* keeps it white on dark background */
}

.login-box {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 363px;
    height: 261px;
    gap: 16px;
    padding: 16px;
}


.popup-error {
    background-color: #f44336;
    color: white;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    animation: fadein 0.3s ease-in;
    z-index: 9999;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
}
@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-success {
  max-width: 400px;
  margin: 0 auto 20px auto;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  animation: slideDownFade 0.3s ease-out;
  text-align: center;
  position: relative;
  z-index: 1000;
  /* Center horizontally if fixed */
  left: 50%;
  transform: translateX(-50%);
}

.popup-success {
  background-color: #e6ffed;
  border: 1px solid #5cbf84;
  color: #227a4d;
  position: fixed;
  top: 20px;
  width: auto;
  min-width: 250px;
}


/* Animation for popup sliding down and fading in */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-10px) translateX(-50%);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
}
