/* InvoiceMate Custom Login Styles */

/* Enhanced form floating labels */
.form-floating.focused label {
    color: #667eea;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating label {
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* Enhanced button animations */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feather-loader {
    animation: spin 1s linear infinite;
}

/* Enhanced feature items */
.feature-item {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Stats animation */
.stat-number {
    font-family: 'Overpass', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive improvements */
@media (max-width: 576px) {
    .login-card {
        margin: 0.5rem;
        padding: 1.5rem !important;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .btn-login {
        height: 3rem;
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(30, 30, 30, 0.95);
        color: #e2e8f0;
    }
    
    .login-title {
        color: #f7fafc;
    }
    
    .login-subtitle {
        color: #a0aec0;
    }
    
    .form-control {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-control:focus {
        background: #1a202c;
        border-color: #667eea;
        color: #f7fafc;
    }
    
    .form-check-label {
        color: #e2e8f0;
    }
}

/* Accessibility improvements */
.btn-login:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.form-control:focus {
    outline: none;
}

/* Print styles */
@media print {
    .login-container {
        background: white !important;
    }
    
    .features-preview {
        display: none !important;
    }
}
