/* CSS pour la page de vérification par calcul */

/* Container principal pour la vérification */
.verify-math-box {
    max-width: 500px;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.verify-math-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.verify-math-box > * {
    position: relative;
    z-index: 2;
}

/* Icône de vérification */
.verification-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    animation: pulse 2s infinite;
}

.verification-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Container du challenge mathématique */
.math-challenge-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Question mathématique */
.math-question {
    text-align: center;
    margin-bottom: 2rem;
}

.question-label {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.math-expression {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Monaco', 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 1rem;
    border: 3px dashed #e0e6ed;
    border-radius: 10px;
    display: inline-block;
    min-width: 200px;
}

/* Formulaire de réponse */
.math-form {
    margin-bottom: 1.5rem;
}

.math-input {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.math-input:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.math-input input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    background: transparent;
    border: none;
}

.math-input input:focus {
    outline: none;
    box-shadow: none;
}

/* Bouton de vérification */
.btn-verify {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-verify:active {
    transform: translateY(0);
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Section de régénération */
.regenerate-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.regenerate-text {
    color: #6c757d;
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-regenerate {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-regenerate:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Informations du challenge */
.challenge-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.info-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* Section d'aide */
.help-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.help-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.9rem;
}

.help-list i {
    color: #17a2b8;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Side panel pour la vérification */
.verification-info h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.security-features {
    margin-bottom: 2rem;
}

.security-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.security-feature:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.security-feature i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.security-feature h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.security-feature p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Boîte de conseils */
.tips-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #2196f3;
}

.tips-box h4 {
    color: #1976d2;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.tips-box p {
    margin: 0;
    color: #424242;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Processus d'inscription */
.verification-preview {
    margin-top: 2rem;
}

.verification-preview h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.step.active {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    flex-shrink: 0;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.math-challenge-container {
    animation: fadeInUp 0.6s ease-out;
}

.challenge-info {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.help-section {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Animation de shake pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error {
    animation: shake 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .verify-math-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .math-expression {
        font-size: 2rem;
        min-width: 150px;
    }
    
    .challenge-info {
        flex-direction: column;
        text-align: center;
    }
    
    .process-steps {
        gap: 0.75rem;
    }
    
    .step {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .verification-icon {
        width: 60px;
        height: 60px;
    }
    
    .verification-icon i {
        font-size: 1.5rem;
    }
    
    .math-expression {
        font-size: 1.8rem;
        padding: 0.75rem;
    }
    
    .math-input input {
        font-size: 1.3rem;
    }
}