/* Metalockr.com 2025 - Simple Login Animations */

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulse for focus */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(24, 144, 255, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    }
}

/* Apply smooth entrance animation */
.auth-form {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced form controls */
.form-control {
    transition: all 0.2s ease;
    border: 1px solid #e3e6f0;
}

.form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    animation: subtlePulse 2s infinite;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Loading state */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Alert animations */
.alert {
    animation: fadeInUp 0.3s ease-out;
}

/* Logo subtle hover */
.auth-header img {
    transition: transform 0.3s ease;
}

.auth-header img:hover {
    transform: scale(1.05);
}

/* Clean and professional styling */