/*
 * Archivo: includes/wyscout-registro/assets/css/registration-styles.css
 * 
 * Estilos para el formulario de registro con integración Wyscout
 */

/* Contenedor principal */
.wyscout-registration-fields {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    position: relative;
    overflow: hidden;
}

.wyscout-registration-fields::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 50%, #0073aa 100%);
}

.wyscout-registration-fields h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Campos del formulario */
.wyscout-field {
    margin-bottom: 18px;
}

.wyscout-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3338;
    font-size: 14px;
}

.wyscout-field input,
.wyscout-field select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fff;
}

.wyscout-field input:focus,
.wyscout-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
    transform: translateY(-1px);
}

.wyscout-field input:hover,
.wyscout-field select:hover {
    border-color: #8c8f94;
}

/* Descripción de campos */
.wyscout-field .description {
    font-size: 12px;
    color: #646970;
    margin-top: 6px;
    line-height: 1.4;
}

/* Asterisco obligatorio */
.required-asterisk {
    color: #dc3232;
    font-weight: bold;
    margin-left: 2px;
}

/* Checkbox personalizado */
.wyscout-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.wyscout-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0073aa;
}

.wyscout-checkbox span {
    font-size: 14px;
    color: #2c3338;
    line-height: 1.4;
    cursor: pointer;
}

/* Estados de mensaje */
.wyscout-loading {
    display: none;
    margin: 15px 0 10px;
    padding: 12px 16px;
    background: linear-gradient(45deg, #fff3cd, #fefcf3);
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.wyscout-loading.show {
    display: flex;
}

.wyscout-message {
    margin: 15px 0 10px;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

.wyscout-success {
    background: linear-gradient(45deg, #d4edda, #f1f9f3);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wyscout-error {
    background: linear-gradient(45deg, #f8d7da, #fdf2f2);
    border: 1px solid #f5c6cb;
    color: #721c24;
}



/* Animaciones */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select con grupos */
.wyscout-field select optgroup {
    font-weight: bold;
    color: #0073aa;
    background-color: #f6f7f7;
}

.wyscout-field select option {
    padding: 5px;
    color: #2c3338;
}

/* Responsive */
@media (max-width: 768px) {
    .wyscout-registration-fields {
        margin: 15px 0;
        padding: 15px;
        border-radius: 6px;
    }
    
    .wyscout-field input,
    .wyscout-field select {
        padding: 12px 14px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .wyscout-checkbox {
        align-items: flex-start;
    }
    
    .wyscout-checkbox input[type="checkbox"] {
        margin-top: 3px;
    }
    
    /* Ajustes para tabla en móvil */
    .wyscout-squad-wrapper {
        margin: 15px -15px; /* Extiende hasta los bordes en móvil */
        border-radius: 0;
    }
    
    .wyscout-squad-table th,
    .wyscout-squad-table td {
        padding: 6px 8px !important;
        font-size: 12px;
    }
}

/* Estados de validación */
.wyscout-field.has-error input,
.wyscout-field.has-error select {
    border-color: #dc3232;
    box-shadow: 0 0 0 2px rgba(220,50,50,0.1);
}

.wyscout-field.has-success input,
.wyscout-field.has-success select {
    border-color: #46b450;
    box-shadow: 0 0 0 2px rgba(70,180,80,0.1);
}

/* Placeholder mejorado */
.wyscout-field input::placeholder {
    color: #8c8f94;
    opacity: 1;
    font-style: italic;
}

/* Mejora visual para el formulario de WordPress */
body.login .wyscout-registration-fields {
    margin: 16px 0;
}

/* Iconos en mensajes */
.wyscout-loading::before {
    content: '🔄';
    animation: spin 1s linear infinite;
}

.wyscout-success::before {
    content: '✅';
    margin-right: 4px;
}

.wyscout-error::before {
    content: '⚠️';
    margin-right: 4px;
}

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

/* Nota informativa */
.wyscout-field small {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f6f7f7;
    border-left: 3px solid #0073aa;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: #646970;
    line-height: 1.4;
}

/* Hover effects */
.wyscout-field:hover label {
    color: #0073aa;
    transition: color 0.2s ease;
}

/* Focus ring personalizado */
.wyscout-field input:focus-visible,
.wyscout-field select:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}