/* Hide browser default password reveal icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-inner-spin-button,
input[type="password"]::-webkit-clear-button {
    display: none !important;
    appearance: none;
}

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

.server-error-message {
    background-color: #ffe5e5;
    color: #d10000;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: left;
  }
  


/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.login-box {
    min-height: auto;               /* Let it grow dynamically */
    height: auto;                   /* Ensure no fixed height issues */
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 500px;
    overflow: visible;              /* Ensure inner elements aren't clipped */
    box-sizing: border-box;
    margin: 1% 0px;      /* Important for proper padding handling */
}


.login-title {
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.password-group .eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.remember-me {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.forgot-password-container {
    flex-shrink: 0; /* Prevents resizing */
}

.forgot-password {
    text-decoration: none;
    color: #00B207;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}


.login-btn {
    width: 100%;
    background: #00B207;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.login-btn:hover {
    text-decoration: none;
    background: #008C04;
}

a.login-btn {
    text-decoration: none;
    display: block;
    text-align: center;
    color: white;           /* Ensures white text */
}

a.login-btn:visited {
    color: white;           /* Prevents purple text after clicking */
}

a.login-btn:hover,
a.login-btn:focus {
    color: white;           /* Keeps hover/focus text white */
    outline: none;          /* Removes blue outline in some browsers */
    text-decoration: none;  /* Ensures no underline */
}



.google-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Removes blue underline */
}

.google-signin-btn span{
    text-decoration: none;
}

.google-signin:hover {
    background-color: #f1f1f1;
}

.google-signin img {
    width: 20px;
    height: 20px;
}

/* Optional: if <a> tag also has this class, reset it */
.google-signin-btn {
    all: unset; /* resets all default <a> or <button> styles */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
}

.google-signin a {
    color: inherit;
    text-decoration: none;
  }
  
  .google-signin a:hover {
    color: inherit;
    text-decoration: none;
  }
  

.register-link {
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #00B207;
    font-weight: bold;
    text-decoration: none;
}


.errr-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    padding-left: 2px;
    font-weight: 500;
    display: none; /* you can toggle this with JS */
    text-align: left;
  }
  


  /* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
        height: auto;
        align-items: flex-start;
    }

    .login-box {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px 15px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .form-group {
        margin-bottom: 18px;
    }

    .password-group .eye-icon {
        right: 8px;
    }

    .remember-me {
        flex-direction: column;
        align-items: flex-start;
    }

    .google-signin {
        font-size: 15px;
        padding: 8px;
    }

    .register-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-control {
        padding: 8px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-btn, .google-signin {
        font-size: 15px;
    }

    .google-signin img {
        width: 18px;
        height: 18px;
    }
}
