/* Estilos base para el plugin Validate Email */
.validate-email-wrapper,
.profile-completion-wrapper {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.validate-email-wrapper {
    margin-top: 3rem;
}
.validate-email-wrapper .header-subtitle {
    font-size: 23px;
    font-weight: 600;
    color: #000000;

}
/* Header común */
.validate-email-header,
.profile-completion-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* color: white; */
    text-align: center;
    padding: 10px 30px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.header-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.validate-email-header h1,
.profile-completion-header h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.header-subtitle,
.profile-completion-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Contenedores principales */
.validate-email-container,
.profile-completion-container {
    background: white;
    padding: 40px;
    border-radius: 20px 20px 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* === Sección de plataformas === */
.platforms-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
}

/* Texto "Tengo cuenta en:" */
.platforms-section h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #222;
}
#logoYoleo .st0 {
    fill: #e95b0c;
}
#logoYoleo .st1, 
#logoYoleo .st2 {
    fill: #616161;
}
.platforms-logos #logoYoleo {
    width: 171px;
    height: 25px;
}
.platforms-logos #Capa_1 {
    width: 138px;
    height: 25px;
}
/* Contenedor de logos */
.platforms-logos {
    display: flex;
    align-items: center;
    gap: 20px;        
}

/* Cada logo */
.platforms-logos img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.platforms-logos span {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}
/** ------------------------------- */

.platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.platform-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.platform-card.yoleo {
    background: linear-gradient(45deg, #f0f9ff, #e0f2fe);
}

.platform-card.libreria {
    background: linear-gradient(45deg, #fef2f2, #fee2e2);
}

.platform-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Formularios */
.form-group {
    margin-bottom: 25px;
}

.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.email-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Inputs */
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    /* padding: 15px; */
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* reCAPTCHA */
.recaptcha-group {
    display: flex;
    justify-content: center;
}

/* Botones */
.validate-btn,
.complete-profile-btn {
    width: 100%;
    background: #2721F7;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 368px;
    height: 48px;
    margin: auto;
    box-shadow: 0px 2px 4px 0px #0000004D;
    font-size: 17px;
    font-weight: 500;
}

.validate-btn:hover:not(:disabled),
.complete-profile-btn:hover:not(:disabled) {
    transform: translate;
}

.validate-btn:hover:not(:disabled),
.complete-profile-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.validate-btn:disabled,
.complete-profile-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensajes de validación */
.validation-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.validation-message.success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

.validation-message.error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.message-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Sección sin cuenta */
.no-account-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.no-account-section h4 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.register-subtitle {
color: #BABBBF;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
}

.register-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.register-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.yoleo-btn {
    background: linear-gradient(45deg, #3182ce, #2c5aa0);
    color: white;
}

.yoleo-btn:hover {
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.3);
    color: white;
}

.libreria-btn {
    background: linear-gradient(45deg, #972a2a, #c53030);
    color: white;
}

.libreria-btn:hover {
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
    color: white;
}

.register-btn .btn-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Mensaje de perfil completo */
.profile-complete-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border-radius: 12px;
    margin: 20px 0;
}

.profile-complete-message h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
}

.profile-complete-message a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .validate-email-wrapper,
    .profile-completion-wrapper {
        margin: 20px;
    }
    
    .validate-email-container,
    .profile-completion-container {
        padding: 20px;
    }
    
    .platforms-grid,
    .register-options {
        grid-template-columns: 1fr;
    }
    
    .validate-email-header,
    .profile-completion-header {
        padding: 30px 20px;
    }
    
    .validate-email-header h1,
    .profile-completion-header h1 {
        font-size: 2rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .genres-grid {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .validate-email-header h1,
    .profile-completion-header h1 {
        font-size: 1.5rem;
    }
    
    .header-subtitle,
    .profile-completion-header p {
        font-size: 1rem;
    }
    
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }
    
    .validate-btn,
    .complete-profile-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Agregar estos estilos al archivo existente */

/* Pasos del formulario */
.form-step {
    transition: all 0.3s ease;
}

.step-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.step-header h3 {
    color: #48bb78;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.user-found-message {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 500;
}

/* Campos de contraseña */
.password-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.password-requirements {
    margin-top: 5px;
}

.password-requirements small {
    color: #718096;
    font-size: 0.85rem;
}

#password-match-message {
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

#password-match-message.match {
    color: #48bb78;
}

#password-match-message.no-match {
    color: #e53e3e;
}

/* Validación de contraseña en tiempo real */
.password-strength {
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.password-strength.weak {
    background: #fed7d7;
    color: #c53030;
}

.password-strength.medium {
    background: #fef5e7;
    color: #dd6b20;
}

.password-strength.strong {
    background: #f0fff4;
    color: #38a169;
}

/* Botón de volver */
.back-to-email {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 10px;
}

.btn-link:hover {
    color: #5a67d8;
}

/* Animaciones de transición entre pasos */
.form-step.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.form-step.fade-in {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive para pasos */
@media (max-width: 768px) {
    .step-header h3 {
        font-size: 1.3rem;
    }
    
    .user-found-message {
        font-size: 0.9rem;
    }
}

/* Indicador de fuerza de contraseña mejorado */
.password-strength {
    margin-top: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.very-weak {
    width: 20%;
    background-color: #d32f2f;
}

.strength-fill.weak {
    width: 40%;
    background-color: #f57c00;
}

.strength-fill.medium {
    width: 60%;
    background-color: #fbc02d;
}

.strength-fill.strong {
    width: 80%;
    background-color: #689f38;
}

.strength-fill.excellent {
    width: 100%;
    background-color: #2e7d32;
}

.strength-text {
    font-size: 12px;
    line-height: 1.3;
}

.password-strength.very-weak {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.password-strength.weak {
    background-color: #fff3e0;
    border: 1px solid #ffcc02;
}

.password-strength.medium {
    background-color: #fffde7;
    border: 1px solid #fff176;
}

.password-strength.strong {
    background-color: #f1f8e9;
    border: 1px solid #aed581;
}

.password-strength.excellent {
    background-color: #e8f5e8;
    border: 1px solid #a5d6a7;
}

/* Advertencias de contraseña */
.password-warnings {
    margin-top: 8px;
}

.warning {
    font-size: 11px;
    color: #f57c00;
    background-color: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
}

/* Botón deshabilitado */
.validate-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc !important;
}

.validate-btn.disabled:hover {
    background-color: #ccc !important;
    transform: none !important;
}

/* Mensaje de coincidencia de contraseñas */
#password-match-message {
    font-size: 12px;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#password-match-message.match {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

#password-match-message.no-match {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Responsive: en pantallas pequeñas */
@media (max-width: 480px) {
    .password-toggle {
        right: 6px;
        padding: 6px;
    }
    
    .password-toggle .eye-icon {
        font-size: 16px;
    }
    
    .password-input-container input[type="password"],
    .password-input-container input[type="text"] {
        padding-right: 40px;
    }

    .requirements-list {
        font-size: 11px;
    }

    .requirement .req-icon {
        font-size: 12px;
        min-width: 14px;
    }
}

/* Accesibilidad: modo de alto contraste */
@media (prefers-contrast: high) {
    .password-toggle-custom {
        border: 1px solid currentColor;
    }
    
    .password-toggle-custom:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .password-toggle-custom,
    .password-strength,
    #password-match-message {
        transition: none;
    }
}

/* Estilos para el icono de mostrar/ocultar contraseña */
.password-toggle-custom {
    position: relative;
    cursor: pointer;
    color: #666;
    font-size: 1.2em;
    z-index: 2;
    border-radius: 50%;
    
    transition: color 0.2s, box-shadow 0.2s;
    
}

.password-toggle-custom:hover {
    color: #333;
}

/* Para que el input y el icono estén en el mismo contexto */
.form-group {
    position: relative;
}

/* Opcional: aumenta el padding-right del input para que no se superponga el icono */
.form-group input[type="password"] {
    padding-right: 2.5em;
}

.form-row {
    display: flex;
    gap: 32px; /* Espacio entre columnas */
}

.form-row .form-group {
    flex: 1 1 0;
    min-width: 0;
}

/* Estilos para la sección de otros métodos de inicio de sesión */
.other-login-methods {
  text-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 30px 20px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  font-family: 'Inter', sans-serif;
}

.other-login-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 16px;
}

.other-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-login {
  width: 280px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-login:hover {
  background: #f9f9f9;
  border-color: #ccc;
}

.btn-login img {
  width: 20px;
  height: 20px;
}

.btn-login span {
  color: #000 !important;
}

.btn-login {
  color: #000 !important;
  background: #fff !important;
}

.checkbox-notify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
  margin-top: 16px;
}

.checkbox-notify input {
  accent-color: #000;
  width: 16px;
  height: 16px;
}

.terms-text {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
  line-height: 1.5;
}

.terms-text a {
  color: #333;
  text-decoration: underline;
}
