/* Login Form Messages */
.login-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 5px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    padding: 5px !important;
    width: 30px !important;
    line-height: 1;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #000;
}

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    pointer-events: none;
}

/* Form Group Adjustments for Password Toggle */
.signin-form .form-group {
    position: relative;
}

.signin-form .form-group input[type="password"],
.signin-form .form-group input[type="text"][name="password"] {
    padding-right: 45px;
}

/* Button Loading State */
.signin-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Input Focus States */
.signin-form input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Remember Me Checkbox Styling */
.remember-me-wrap input[type="checkbox"] {
    cursor: pointer;
    margin-right: 5px;
}

.remember-me-wrap label {
    cursor: pointer;
    user-select: none;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .login-message {
        font-size: 13px;
        padding: 12px 15px;
    }

    .password-toggle {
        right: 10px;
        font-size: 16px;
    }
}
