/* Styles spécifiques pour le formulaire */
#characterForm {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

input[type="text"], 
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input:focus, 
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(126, 100, 196, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

input::placeholder,
textarea::placeholder,
select::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.upload-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

.file-status {
    margin-left: 10px;
    font-weight: 500;
}

.generate-btn {
    width: 100%;
    padding: 15px 25px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--button-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.generate-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 18px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.error-message:not(:empty) {
    opacity: 1;
}

.form-group {
    position: relative;
}

input.error {
    border-color: var(--error);
    animation: shake 0.5s ease;
    background-color: rgba(239, 71, 111, 0.05);
}

input.valid {
    border-color: var(--success);
    background-color: rgba(6, 214, 160, 0.05);
}

.upload-button.error {
    border-color: var(--error);
    animation: shake 0.5s ease;
    background-color: rgba(239, 71, 111, 0.05);
}

.upload-button.valid {
    border-color: var(--success);
    background-color: rgba(6, 214, 160, 0.05);
}

/* Animation de chargement pour le bouton */
.generate-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.generate-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    input[type="text"], 
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea,
    select,
    .upload-button {
        padding: 12px 15px;
    }
    
    .generate-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
} 