/* Auth Pages CSS */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.bg-login-image,
.bg-register-image {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover;
    background-position: center;
    border-radius: 0.375rem 0 0 0.375rem;
}

.card {
    border-radius: 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.form-control-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 1.5rem 1rem;
    border: 1px solid #d1d3e2;
    background-color: #fff;
    color: #6e707e;
}

.form-control-user:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-block {
    width: 100%;
}

.text-gray-900 {
    color: #5a5c69 !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.features .feature-item i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #667eea;
    border-color: #667eea;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.small {
    font-size: 0.875rem;
    color: #858796;
}

.small:hover {
    color: #667eea;
    text-decoration: none;
}

/* Language Switcher */
.btn-group .btn-outline-secondary {
    border-color: #d1d3e2;
    color: #858796;
}

.btn-group .btn-outline-secondary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.btn-group .btn-outline-secondary.active {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bg-login-image,
    .bg-register-image {
        display: none !important;
    }
    
    .card-body .p-5 {
        padding: 2rem !important;
    }
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
}

.alert-success {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
}

/* Animation */
.card {
    animation: slideInUp 0.5s ease-out;
}

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

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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