/* Main container */
.recovery-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: #fff;
}

/* Left sidebar with blue background */
.recovery-sidebar {
  position: relative;
  width: 50%;
  background: linear-gradient(135deg, #0284C7, #1E293B);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
}

/* Create circular background elements */
.recovery-sidebar::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -200px;
  left: -200px;
  z-index: 0;
  animation: float 20s infinite alternate ease-in-out;
}

.recovery-sidebar::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -100px;
  right: -100px;
  z-index: 0;
  animation: float 15s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(20px, 20px);
  }
}

/* Language selector */

.language-selector, .mobile-language-selector {
  position: relative;
  align-self: flex-end;
  z-index: 10;
  margin-bottom: 1rem;
  border-top: 0;
}

.mobile-language-selector {
  align-self: center;
  margin: 0 auto 1.5rem auto;
  width: 100%;
  max-width: 200px;
  text-align: center;
}

.language-button {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.mobile-language-selector .language-button {
  background: rgba(2, 132, 199, 0.2);
  color: #0284C7;
  margin: 0 auto;
  justify-content: center;
}

.language-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.mobile-language-selector .language-button:hover {
  background: rgba(2, 132, 199, 0.3);
}

.globe-icon {
  margin-right: 0.5rem;
}

.flag-icon {
  width: 20px;
  height: 15px;
  margin-right: 0.5rem;
}

.language-dropdown {
  position: absolute;
  background: none;
  border-radius: 20px;
  margin-top: 0.5rem;
  z-index: 100;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  left: 0;
  right: 0;
}

.mobile-language-selector .language-dropdown {
  background: none;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 100%;
}

.language-dropdown.show {
  opacity: 1;
  background: none;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-language-selector .language-dropdown.show {
  background-color: transparent;
  transform: translateX(-50%) translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 160px; 
  padding: 0.5rem 0.8rem; 
  margin-bottom: 0.2rem;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s;
  background: transparent;
  border-radius: 20px;
}

.mobile-language-selector .language-option {
  color: #0284C7;
  margin-bottom: 0.2rem;
  background: #e2e8f0;
}

.language-option:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-language-selector .language-option:not(:last-child) {
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
}
.language-option:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-language-selector .language-option:hover {
  background-color:  #e0f2fe; 
}



/* Welcome content */
.welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.welcome-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.welcome-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Features section */
.features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 1.25rem;
}

.feature-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
}

/* Terms section */
.terms,
.mobile-terms {
  color: white;
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.mobile-terms {
  color: #666;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: none;
  /* Escondido por padrão, mostrado via media query */
}

.terms a,
.mobile-terms a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.mobile-terms a {
  color: #0284C7;
}

.terms a::after,
.mobile-terms a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.mobile-terms a::after {
  background: #0284C7;
}

.terms a:hover,
.mobile-terms a:hover {
  color: #dbeafe;
}

.mobile-terms a:hover {
  color: #2563eb;
}

.terms a:hover::after,
.mobile-terms a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Right side - Recovery form */
.recovery-form-container {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f8fafc;
}

.recovery-form-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Recovery step */
.recovery-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Logo styling */
.logo-container {
  /* margin-bottom: 2rem; */
  text-align: center;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; 
}

.logo-image {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease;
  margin-bottom: 30px;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-text {
  width: 140px;
  height: auto;
  transition: transform 0.3s ease;
  margin-top: -2px; 
}

.logo-text:hover {
  transform: scale(1.05);
}

.partner-logo {
  max-width: 180px;
  height: auto;
}

/* Success icon */
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #f8fdfb, #e0f5ed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.15),
    inset 0 -2px 5px rgba(16, 185, 129, 0.1),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.3);
  opacity: 0.6;
}

.success-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

.success-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 20px rgba(16, 185, 129, 0.2),
    inset 0 -2px 5px rgba(16, 185, 129, 0.1),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.success-icon:hover i {
  transform: scale(1.1);
  color: #059669;
}


/* icone Completed  */
.completed-icon-container {
  margin-bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* animação de Checkmark */
.completed-icon-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
  animation: completed-icon-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.completed-icon-checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px #7ac142;
  animation: completed-icon-fill .4s ease-in-out .4s forwards, completed-icon-scale .3s ease-in-out .9s both;
}

.completed-icon-checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: completed-icon-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes completed-icon-stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes completed-icon-scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes completed-icon-fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #7ac142;
  }
}

/* Ícone de Sucesso  */


/* Error icon */
.error-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #fef2f2, #fbe1e1);
  /* Alterado para tons avermelhados */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.15),
  inset 0 -2px 5px rgba(239, 68, 68, 0.1),
  inset 0 2px 5px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.error-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.3);
  opacity: 0.6;
}

.error-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

.error-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 20px rgba(239, 68, 68, 0.2),  
  inset 0 -2px 5px rgba(239, 68, 68, 0.1),  
  inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.error-icon:hover i {
  transform: scale(1.1);
  color: #ef4444;
}



/* Form title and subtitle */
.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
  text-align: center;
}

.form-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

/* Recovery form */
.recovery-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

/* Input container with icon */
.input-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
}

.input-container.focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-container input {
  flex: 1;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
  background: transparent;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #0284C7;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #0284C7;
}

.toggle-password i {
  font-size: 1.2rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toggle-password:active i {
  transform: scale(1.2);
  opacity: 0.8;
}

.icon-transition {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Error message */
.error-message {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #b91c1c;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.1);
}

.error-message i {
  margin-top: 0.25rem;
}

/* Recovery button */
.recovery-button {
  width: 100%;
  background-color: #0284C7;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.recovery-button:hover {
  color: white;
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.recovery-button:active {
  transform: translateY(0);
}

.recovery-button.loading {
  background-color: #93c5fd;
  cursor: not-allowed;
}

/* Back to login */
.back-to-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #0284C7;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.back-to-login:hover {
  color: #2563eb;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Transitions */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s, transform 0.3s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all 0.3s ease;
}

.slide-fade-enter,
.slide-fade-leave-to {
  transform: translateY(-10px);
  opacity: 0;
}

/* Animation */
/* .animated--grow-in {
  animation: growIn 0.3s ease-in-out;
} */
/* 
@keyframes growIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
} */

/* Helper classes */
.ml-2 {
  margin-left: 0.5rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.rotate-180 {
  transform: rotate(180deg);
}

.transition-transform {
  transition: transform 0.2s ease;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .welcome-content h1 {
    font-size: 2rem;
  }

  .welcome-content p {
    font-size: 0.85rem;
  }

  .feature-text h3 {
    font-size: 0.85rem;
  }

  .feature-text p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .language-selector, .mobile-language-selector {
  display: none;
  }
  .recovery-container {
    flex-direction: column;
    height: auto;
    /* Permite que o container se ajuste ao conteúdo */
  }

  .recovery-sidebar {
    display: none;
    /* Esconde a sidebar em telas menores */
  }

  .recovery-form-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; 
    padding: 1.5rem;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
  }
  

  .recovery-form-wrapper {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-top: 1rem;
    height: auto;
    /* Permite que o wrapper se ajuste ao conteúdo */
    max-height: none;
    /* Remove qualquer altura máxima */
  }



  .mobile-terms {
    display: block;
    /* Mostra os termos mobile */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    /* Garante que fique visível */
  }

  /* Reduz o espaçamento entre elementos para telas menores */
  .form-group {
    margin-bottom: 1.25rem;
  }

  .logo-container {
    margin-bottom: 1.5rem;
  }

  .form-title {
    margin-bottom: 0.25rem;
  }

  .form-subtitle {
    margin-bottom: 1.5rem;
  }

  .recovery-button {
    margin-bottom: 1rem;
  }

  .success-icon,
  .error-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }

  .success-icon i,
  .error-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .recovery-form-container {
    padding: 1rem;
  }

  .recovery-form-wrapper {
    padding: 1.25rem;
    margin-top: 0.5rem;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .form-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .recovery-button {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }


  /* Reduz ainda mais o espaçamento para telas muito pequenas */
  .form-group {
    margin-bottom: 1rem;
  }

  .logo-container {
    margin-bottom: 1rem;
  }

  .success-icon,
  .error-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .success-icon i,
  .error-icon i {
    font-size: 1.75rem;
  }
}

/* Media query for very small screens */
@media (max-width: 380px) {
  .recovery-form-container {
    padding: 0.75rem;
  }

  .recovery-form-wrapper {
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  }

  /* Ajusta o tamanho dos elementos para telas muito pequenas */
  .input-container input {
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    font-size: 0.8rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .back-to-login {
    font-size: 0.85rem;
  }
}

/* Animation for form elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recovery-form-wrapper>* {
  animation: fadeIn 0.3s ease-out forwards;
}