html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none; /* Prevents bounce/rubber-band effect */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #f5f5f5;
    position: fixed; /* Prevents container from moving */
    top: 0;
    left: 0;
}

#togglePassword {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    right: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: -17px 0 5px 5px;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.remember-me:hover {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.remember-me input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.remember-me input[type="checkbox"]:hover {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.remember-me input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.remember-me input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.remember-me input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(61, 141, 245, 0.3);
}

.eye-icon {
    width: 24px;
    height: 24px;
}

#accessCode:focus {
    outline: none;
    box-shadow: none;
    border-color: #3d8df5;
}

/* Style for Chrome autofill */
#accessCode:-webkit-autofill,
#accessCode:-webkit-autofill:hover, 
#accessCode:-webkit-autofill:focus, 
#accessCode:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff; /* Ensure cursor color matches text */
}