/* Login Page Custom Styles */

/* Card Animation */
.card {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Input Styles */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    height: auto;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #73006e;
    box-shadow: 0 0 0 0.2rem rgba(115, 0, 110, 0.1);
}

/* Floating Labels */
.form-floating label {
    color: #666;
    padding: 1rem 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #73006e;
    font-weight: bold;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Button Loading State */
.btn-login.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Checkbox Custom */
.form-check-input:checked {
    background-color: #73006e;
    border-color: #73006e;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin: 20px;
    }
    
    .card-logo {
        width: 60px;
        height: 60px;
        margin-top: -40px;
    }
}