/* Styles pour la section de code de licence */

.license_section {
    background: white;
    padding: 10px 10px;

    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    border: 1px solid #e9ecef;
}

.license_container {
    max-width: 100%;
    margin: 0 auto;
    margin-left: 10px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.license_form {
    margin-bottom: 0;
}

.license_input_row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
    z-index: 1;
}

.license_input_row label {
    min-width: 80px;
    font-weight: 500;
    margin: 0;
    flex-shrink: 0;
}

.license_input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 100px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin: 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
    z-index: 1;
    position: relative;
}

.license_input:focus {
    outline: none;
    border-color: #6f42c1;
    background: white;
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.1);
}

.license_input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.license_button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    border: none;
    border-radius: 100px;
    cursor: pointer;

    transition: all 0.3s ease;
    min-width: 120px;
    white-space: nowrap;
    flex-shrink: 0;
}

.license_button:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4a2a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
}

.license_button:active {
    transform: translateY(0);
}

.license_button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.license_help {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 100px;
    border-left: 4px solid #6f42c1;
}

.license_help p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.license_result {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 100px;
    font-weight: 500;
    text-align: center;
}

.license_result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.license_result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.license_result.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .license_section {
        padding: 15px 10px;
        margin-top: auto;
    }
    
    .license_container {
        padding: 0;
        margin: 0;
    }
    
    .license_input_row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .license_input_row label {
        display: none;
    }
    
    .license_input {
        width: 100%;
        margin: 0;
        font-size: 16px;
        padding: 15px;
    }
    
    .license_button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

/* Animation pour le chargement */
.license_button.loading {
    position: relative;
    color: transparent;
}

.license_button.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: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
