/* Login Page Specific Styles */

/* Animated Background Gradient */
body {
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Logo Animation */
.inline-flex.items-center {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Card Entry Animation */
.bg-white.rounded-2xl {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Focus Effects */
input:focus {
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* Button Hover Effects */
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Validation Error Styling */
.text-red-600 {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.field-validation-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: #dc2626 !important;
}

/* Custom Checkbox Styling */
input[type="checkbox"]:checked {
    background-color: #8B0000;
    border-color: #8B0000;
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
}

/* Password Toggle Button */
#togglePassword,
#toggleConfirmPassword {
    cursor: pointer;
    transition: color 0.2s ease;
}

#togglePassword:hover,
#toggleConfirmPassword:hover {
    color: #8B0000;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .bg-white.rounded-2xl {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button,
a {
    transition: all 0.3s ease;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #8B0000;
    outline-offset: 2px;
}

/* Divider Styling */
.border-t {
    opacity: 0.2;
}

/* Footer Text Animation */
.text-gray-400 {
    animation: fadeIn 1s ease-in 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}