/* Login Page Specific Styles - Minimal CSS for Tailwind compatibility */

/* Prevent FOUC (Flash of Unstyled Content) */
.login-page-loading {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.login-page-loaded {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Form input focus enhancements */
input:focus, button:focus {
    outline: none;
}

/* Custom animations for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state for buttons */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Hover effects for feature cards */
.feature-card-hover {
    transition: all 0.3s ease;
}

.feature-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

/* Modal animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
.focus-visible:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Override Flowbite input styling to force dark theme */
input[type="text"],
input[type="email"],
input[type="password"],
input.form-input,
input.form-input.error {
    background-color: #1f2937 !important; /* bg-gray-800 */
    border-color: #4b5563 !important; /* border-gray-600 */
    color: #ffffff !important; /* text-white */
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 0.5rem !important;
    outline: none !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input.form-input:focus,
input.form-input.error:focus {
    background-color: #1f2937 !important; /* bg-gray-800 */
    border-color: #8b5cf6 !important; /* border-purple-500 */
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3) !important; /* focus:ring-purple-500 */
    outline: none !important;
}

/* Force dark theme for all input variations */
input[type="text"].form-input,
input[type="email"].form-input,
input[type="password"].form-input,
input[type="text"].form-input.error,
input[type="email"].form-input.error,
input[type="password"].form-input.error {
    background-color: #1f2937 !important; /* bg-gray-800 */
    border-color: #4b5563 !important; /* border-gray-600 */
    color: #ffffff !important; /* text-white */
}

/* Override any Flowbite default styling */
.form-input {
    background-color: #1f2937 !important; /* bg-gray-800 */
    border-color: #4b5563 !important; /* border-gray-600 */
    color: #ffffff !important; /* text-white */
}

/* Ensure placeholder text is visible */
input::placeholder {
    color: #9ca3af !important; /* placeholder-gray-400 */
}

/* Animated gradient buttons - matching homepage style */
.animated-gradient-btn,
button.animated-gradient-btn,
button[type="submit"],
button[type="submit"].animated-gradient-btn,
button[type="submit"].start-verzamelen-btn {
    background: linear-gradient(45deg, #f97316, #eab308, #f97316, #eab308) !important;
    background-size: 300% 300% !important;
    animation: gradientShift 3s ease infinite !important;
    transition: all 0.3s ease !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.animated-gradient-btn:hover,
button.animated-gradient-btn:hover,
button[type="submit"]:hover,
button[type="submit"].animated-gradient-btn:hover,
button[type="submit"].start-verzamelen-btn:hover {
    background: linear-gradient(45deg, #ea580c, #ca8a04, #ea580c, #ca8a04) !important;
    background-size: 300% 300% !important;
    animation: gradientShift 1.5s ease infinite !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4) !important;
}

/* Remove any blue styling from buttons */
button:focus,
button.animated-gradient-btn:focus,
button[type="submit"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5) !important;
    background: linear-gradient(45deg, #f97316, #eab308, #f97316, #eab308) !important;
}

/* Enhanced tab styling - no background, clear active states */
.tab-button,
button.tab-button,
#login-tab,
#register-tab {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 2px solid transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.tab-button:hover,
button.tab-button:hover,
#login-tab:hover,
#register-tab:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #f97316 !important; /* text-orange-500 */
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.active-tab,
#login-tab.active,
#login-tab[aria-selected="true"],
#register-tab.active,
#register-tab[aria-selected="true"] {
    border-bottom-color: #f97316 !important; /* border-orange-500 */
    border-bottom-width: 2px !important;
    color: #f97316 !important; /* text-orange-500 */
    font-weight: 600 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Mobile tab adjustments */
@media (max-width: 640px) {
    .tab-button,
    #login-tab,
    #register-tab {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* Override any Flowbite default styling */
*[class*="flowbite"],
*[class*="btn"],
*[class*="button"] {
    background: transparent !important;
}

/* Force remove blue backgrounds */
*[style*="background-color: rgb(59, 130, 246)"],
*[style*="background-color: #3b82f6"],
*[style*="background-color: blue"] {
    background-color: transparent !important;
}

/* Clean borders for main container */
.bg-gradient-to-br {
    border-width: 1px !important;
    border-style: solid !important;
}

/* Feature cards border refinement */
.feature-card-hover {
    border-width: 1px !important;
    border-style: solid !important;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    /* Reduce padding on mobile */
    .max-w-4xl > div {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Better spacing for forms */
    form.space-y-5,
    form.space-y-6 {
        gap: 1rem !important;
    }
    
    /* Feature cards stack better */
    .grid.grid-cols-1 {
        gap: 1.5rem !important;
    }
}

/* Ensure no double borders - completely remove animated border hover */
.animated-border-hover::before {
    display: none !important;
    content: none !important;
}

.feature-card {
    border: 1px solid rgba(75, 85, 99, 0.2) !important;
    border-radius: 1rem !important;
    background: rgba(17, 24, 39, 0.5) !important;
}

/* Remove any unwanted outlines */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.5) !important;
    outline-offset: 2px !important;
}
