/* styles_register.css - Estilos específicos para registro */

/* Estilos generales para registro */
.register-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.age-input {
    max-width: 100px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* CAPTCHA styles */
.captcha-container {
    background: #F9F5F0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #E8E0D5;
    margin: 15px 0;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-image img {
    border: 2px solid #8B5E3C;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

.refresh-captcha {
    background: none;
    border: none;
    color: #8B5E3C;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

.refresh-captcha:hover {
    color: #D9A441;
}

/* Password strength meter */
.password-strength {
    margin-top: 10px;
    display: none;
}

.strength-meter {
    height: 5px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

.requirements {
    margin-top: 10px;
    display: none;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 13px;
}

.requirement.valid {
    color: #27ae60;
}

.requirement.invalid {
    color: #e74c3c;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-title {
    color: #8B5E3C;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.modal-btn-primary {
    background: #8B5E3C;
    color: white;
}

.modal-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.terms-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .age-input {
        max-width: 100%;
    }
}

 /* Estilos adicionales para el CAPTCHA de texto */
    .captcha-display {
        background: #f5f1e8;
        border: 2px solid #8b5e3c;
        padding: 15px;
        text-align: center;
        margin: 10px 0;
        font-family: 'Courier New', monospace;
        font-size: 28px;
        font-weight: bold;
        letter-spacing: 5px;
        color: #8b5e3c;
        border-radius: 4px;
        user-select: none;
    }
    
    .captcha-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .captcha-btn {
        padding: 10px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .captcha-btn-refresh {
        background: #d9a441;
        color: white;
    }
    
    .captcha-btn-refresh:hover {
        background: #c5943a;
        transform: translateY(-2px);
    }
    
    .captcha-btn-audio {
        background: #5a7d5a;
        color: white;
    }
    
    .captcha-btn-audio:hover {
        background: #4a6d4a;
        transform: translateY(-2px);
    }
    
    .captcha-input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    
    .captcha-input:focus {
        outline: none;
        border-color: #8b5e3c;
        box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.2);
    }
    
    .captcha-hint {
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        text-align: center;
    }
    
    /* Estilos para el botón deshabilitado */
    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }
    
    /* Spinner para botones */
    .fa-spin {
        animation: fa-spin 1s infinite linear;
    }
    
    @keyframes fa-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }