/* QRTracker v2 - Login Page Styles */

/* Additional custom styles can be added here if needed */
/* Main styles are included inline via PHP for better performance */

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

#login {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom checkbox styling */
.login input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.login input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

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

/* Focus states */
.login input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Password strength indicator */
.pw-weak,
.pw-medium,
.pw-strong {
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 13px;
}

.pw-weak {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.pw-medium {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #c2410c;
}

.pw-strong {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Mobile enhancements */
@media (max-width: 768px) {
    body.login::before {
        background: 
            radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    }
    
    .login .forgetmenot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body.login {
        background: #000000;
    }
    
    #login {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .login input[type="text"],
    .login input[type="password"],
    .login input[type="email"] {
        border: 2px solid #000000;
        background: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #login {
        animation: none;
    }
    
    .login .button-primary,
    .login input[type="text"],
    .login input[type="password"],
    .login input[type="email"] {
        transition: none;
    }
}