/* ============================================
   USER REGISTRATION - STANDALONE STYLES
   ============================================
   
   Estilos específicos para el shortcode [user_registration]
   Formulario completo de registro con validación
   
   ============================================ */

/* ============================================
   1. CONTENEDOR PRINCIPAL
   ============================================ */

.user-registration-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf4 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    position: relative;
    overflow: hidden;
}

.user-registration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #62c608 0%, #7ed321 100%);
}

/* ============================================
   2. ENCABEZADO DEL FORMULARIO
   ============================================ */

.registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.registration-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a5f02;
    margin-bottom: 8px;
}

.registration-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
    margin-bottom: 20px;
}

/* ============================================
   3. FORMULARIO Y CAMPOS
   ============================================ */

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row.single {
    flex-direction: column;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #e53e3e;
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #62c608;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(98, 198, 8, 0.1);
}

.form-group input.valid {
    border-color: #38a169;
    background-color: #f0fff4;
}

.form-group input.invalid {
    border-color: #e53e3e;
    background-color: #fef5f5;
}

/* ============================================
   4. VALIDACIÓN Y MENSAJES
   ============================================ */

.validation-message {
    font-size: 12px;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.validation-message.error {
    color: #e53e3e;
    display: block;
}

.validation-message.success {
    color: #38a169;
    display: block;
}

.password-requirements {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    font-size: 12px;
}

.password-requirements .requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #666;
}

.password-requirements .requirement:last-child {
    margin-bottom: 0;
}

.password-requirements .requirement.valid {
    color: #38a169;
}

.password-requirements .requirement .icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
}

.password-requirements .requirement.valid .icon {
    background: #38a169;
}

/* ============================================
   5. CHECKBOXES Y TÉRMINOS
   ============================================ */

.checkbox-group {
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: #f1f5f9;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #62c608;
    cursor: pointer;
}

.checkbox-item label {
    font-size: 13px;
    line-height: 1.4;
    color: #4a5568;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.checkbox-item label a {
    color: #62c608;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-item label a:hover {
    text-decoration: underline;
}

.checkbox-item.invalid {
    border-color: #e53e3e;
    background: #fef5f5;
}

/* ============================================
   6. BOTÓN DE REGISTRO
   ============================================ */

.submit-container {
    margin-top: 30px;
}

.registration-submit-btn {
    margin-top: 30px;
    width: 100%;
    padding: 5px 10px;
    background: linear-gradient(135deg, #62c608 0%, #7ed321 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(98, 198, 8, 0.3);
    position: relative;
    overflow: hidden;
}

.registration-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4fa006 0%, #62c608 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 198, 8, 0.4);
}

.registration-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.registration-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.registration-submit-btn .loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.registration-submit-btn.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   7. MENSAJES DE ESTADO
   ============================================ */

.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1px solid;
    display: none;
}

.form-message.success {
    background: #f0fff4;
    border-color: #38a169;
    color: #1a5f02;
}

.form-message.error {
    background: #fef5f5;
    border-color: #e53e3e;
    color: #c53030;
}

.form-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* ============================================
   8. DISEÑO RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .user-registration-container {
        margin: 10px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .registration-title {
        font-size: 24px;
    }
    
    .registration-subtitle {
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .registration-form {
        gap: 15px;
    }
    
    .checkbox-item {
        padding: 10px;
    }
    
    .checkbox-item label {
        font-size: 12px;
    }
    
    .registration-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .user-registration-container {
        margin: 5px;
        padding: 15px;
    }
    
    .registration-title {
        font-size: 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 16px; /* Evitar zoom en iOS */
    }
    
    .registration-submit-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .checkbox-item {
        padding: 8px;
        gap: 8px;
    }
    
    .checkbox-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   9. ACCESIBILIDAD
   ============================================ */

.form-group input:focus-visible,
.checkbox-item input:focus-visible,
.registration-submit-btn:focus-visible {
    outline: 2px solid #62c608;
    outline-offset: 2px;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   10. UTILIDADES
   ============================================ */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   FIN DEL ARCHIVO
   ============================================ */