


/* ============================================
   ACCOUNT ACTIVATION MODAL - PROFESSIONAL DESIGN
   ============================================ */

/* Overlay de fondo */
.activation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}


/* Modal container */
:where(.activation-overlay) .activation-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  width: 90%;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}



/* ============================================
   HEADER
   ============================================ */

:where(.activation-overlay) .activation-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}



:where(.activation-overlay) .header-icon {
  font-size: 40px !important;
  width: 40px !important;
  height: 40px !important;
  color: white !important;
}

:where(.activation-overlay) .modal-title {
  font-size: 28px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

:where(.activation-overlay) .modal-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}



/* ============================================
   CONTENT
   ============================================ */

:where(.activation-overlay) .activation-modal-content {
  padding: 48px 32px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ============================================
   LOADING STATE
   ============================================ */

:where(.activation-overlay) .activation-loading {
  text-align: center;
  width: 100%;
}


/* Spinner moderno */
:where(.activation-overlay) .spinner-wrapper {
  margin: 0 auto 32px;
  width: 100px;
  height: 100px;
}

:where(.activation-overlay) .circular-spinner {
  width: 100%;
  height: 100%;
  animation: rotate 2s linear infinite;
  transform-origin: center center;
}

:where(.activation-overlay) .spinner-path {
  stroke: #667eea;
  stroke-linecap: round;
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}


/* Textos de loading */
:where(.activation-overlay) .loading-title {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 12px 0;
}

:where(.activation-overlay) .loading-message {
  font-size: 15px;
  color: #6c757d;
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}


/* Progress dots */
:where(.activation-overlay) .progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

:where(.activation-overlay) .dot {
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

:where(.activation-overlay) .dot:nth-child(1) {
  animation-delay: -0.32s;
}

:where(.activation-overlay) .dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}


/* Info adicional */
:where(.activation-overlay) .loading-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 24px;
}

:where(.activation-overlay) .info-icon {
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  color: #667eea !important;
}

:where(.activation-overlay) .loading-info span {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}



/* ============================================
   RESULT STATE (SUCCESS / ERROR)
   ============================================ */

:where(.activation-overlay) .activation-result {
  text-align: center;
  width: 100%;
  animation: fadeIn 0.5s ease;
}


/* Ícono de resultado */
:where(.activation-overlay) .result-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease;
}

:where(.activation-overlay) .result-icon-wrapper.success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

:where(.activation-overlay) .result-icon-wrapper.error {
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
  box-shadow: 0 8px 24px rgba(244, 67, 54, 0.3);
}

:where(.activation-overlay) .result-icon {
  font-size: 48px !important;
  width: 48px !important;
  height: 48px !important;
  color: white !important;
}

/* Títulos de resultado */


:where(.activation-overlay) .result-title.success-title {
  color: #4caf50;
}

:where(.activation-overlay) .result-title.error-title {
  color: #f44336;
}


/* Mensajes de resultado */
:where(.activation-overlay) .result-message {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

:where(.activation-overlay) .result-message.success-message {
  color: #2e7d32;
}

:where(.activation-overlay) .result-message.error-message {
  color: #c62828;
}


/* Botones de acción */
:where(.activation-overlay) .result-actions {
  margin-top: 32px;
}

:where(.activation-overlay) .go-login-btn,
:where(.activation-overlay) .retry-btn {
  min-width: 180px !important;
  height: 44px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

:where(.activation-overlay) .go-login-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

:where(.activation-overlay) .go-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

:where(.activation-overlay) .go-login-btn md-icon {
  margin-right: 8px !important;
  color: white !important;
}

:where(.activation-overlay) .retry-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}

:where(.activation-overlay) .retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4) !important;
}

:where(.activation-overlay) .retry-btn md-icon {
  margin-right: 8px !important;
  color: white !important;
}



/* ============================================
   FOOTER
   ============================================ */

:where(.activation-overlay) .activation-modal-footer {
  background: #f8f9fa;
  padding: 20px 32px;
  border-top: 1px solid #e9ecef;
}

:where(.activation-overlay) .footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6c757d;
  font-size: 13px;
  font-weight: 500;
}

:where(.activation-overlay) .shield-icon {
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
  color: #667eea !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :where(.activation-overlay) .activation-modal {
    max-width: 95%;
    margin: 16px;
  }

  :where(.activation-overlay) .activation-modal-header {
    padding: 32px 24px;
  }

  

  :where(.activation-overlay) .header-icon {
    font-size: 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  :where(.activation-overlay) .modal-title {
    font-size: 24px;
  }

  :where(.activation-overlay) .modal-subtitle {
    font-size: 14px;
  }

  :where(.activation-overlay) .activation-modal-content {
    padding: 36px 24px;
    min-height: 240px;
  }

  :where(.activation-overlay) .spinner-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
  }

  :where(.activation-overlay) .loading-title,
:where(.activation-overlay) .result-title {
    font-size: 20px;
  }

  :where(.activation-overlay) .loading-message,
:where(.activation-overlay) .result-message {
    font-size: 14px;
  }

  :where(.activation-overlay) .result-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  :where(.activation-overlay) .result-icon {
    font-size: 42px !important;
    width: 42px !important;
    height: 42px !important;
  }

  :where(.activation-overlay) .go-login-btn,
:where(.activation-overlay) .retry-btn {
    min-width: 160px !important;
    height: 42px !important;
    font-size: 14px !important;
  }

  :where(.activation-overlay) .activation-modal-footer {
    padding: 16px 24px;
  }

  :where(.activation-overlay) .footer-content {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  :where(.activation-overlay) .activation-modal-header {
    padding: 28px 20px;
  }

  

  :where(.activation-overlay) .header-icon {
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
  }

  :where(.activation-overlay) .modal-title {
    font-size: 22px;
  }

  :where(.activation-overlay) .activation-modal-content {
    padding: 32px 20px;
  }

  :where(.activation-overlay) .loading-message,
:where(.activation-overlay) .result-message {
    font-size: 13px;
  }

  :where(.activation-overlay) .result-icon-wrapper {
    width: 70px;
    height: 70px;
  }

  :where(.activation-overlay) .go-login-btn,
:where(.activation-overlay) .retry-btn {
    width: 100% !important;
    min-width: auto !important;
  }
}