/* Password Overlay Styles */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.password-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-box {
    background: linear-gradient(135deg, #161223 0%, #2a2344 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #eeeeee;
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideIn 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1.0);
    border: 2px solid #7dc22b;
}

.login-box h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #7dc22b;
}

.login-box p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #ccc;
}

.login-input-group {
    margin-bottom: 25px;
    position: relative; /* Needed for positioning the toggle */
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #3a3258;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding-right: 45px; /* Make space for the icon */
}

.login-input:focus {
    border-color: #7dc22b;
    box-shadow: 0 0 0 3px rgba(125, 194, 43, 0.5);
}

.show-password-container {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 10; /* Ensure it's above the input */
}

.show-password-container input[type="checkbox"] {
    display: none; /* Hide the default checkbox */
}

.show-password-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23aaaaaa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>'); /* Eye icon (hidden) */
    background-size: cover;
    transition: background-image 0.2s ease;
}

.show-password-container input[type="checkbox"]:checked ~ .show-password-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237dc22b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.02 18.02 0 0 1 3.53-5.21M2 2l20 20M13.09 11.09A3 3 0 0 1 11 13H8.5"></path><circle cx="12" cy="12" r="3"></circle></svg>'); /* Eye-off icon (visible) */
}


.login-button {
    background: linear-gradient(45deg, #7dc22b, #a8e063);
    color: #161223;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.login-button:hover {
    background: linear-gradient(45deg, #a8e063, #7dc22b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.login-error {
    color: #ff6b6b;
    margin-top: 15px;
    font-size: 0.9rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-error.active {
    visibility: visible;
    opacity: 1;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}