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

/* Left sidebar with blue background */
.login-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 */
.login-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;
}

.login-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, .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;
}

/* Sessão de Termos*/
.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;
}

.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 - Login form */
.login-form-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f8fafc;
}

.login-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);
}

/* Logo styling */
.logo-container {
  margin-bottom:0;
  margin-top:0;
  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;
}

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

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

/* Login form */
.login-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;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
}

.forgot-password {
  color: #0284C7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.forgot-password:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 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;
}

.resend-action {
  margin-top: 0.75rem;
  width: 100%;
}

.resend-button {
  background: none;
  border: none;
  color: #0284C7;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resend-button:hover {
  color: #2563eb;
}

/* Login button */
.login-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;
  position: relative;
  overflow: hidden;
}

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

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

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

/* 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;
}

/* 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 - Aplicando estilo exclusivo de login a partir de 768px */
@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) {
  .login-container {
    flex-direction: column;
    height: auto;
  }
  
  .login-sidebar {
    display: none; 
  }
  
  .login-form-container {
    width: 100%;
    padding: 1.5rem;
    min-height: auto; 
    height: auto;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
   
  }
  
  .login-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-language-selector {
    display: block;
  }
  
  .mobile-terms {
    display: block;
    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;
  }
}

@media (max-width: 480px) {
  .login-form-container {
    padding: 1rem;
  }
  
  .login-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;
  }
  
  .login-button {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .mobile-language-selector {
    margin-bottom: 1rem;
  }
  
  .mobile-terms {
    font-size: 0.8rem;
  }
  
  /* Reduz ainda mais o espaçamento para telas muito pequenas */
  .form-group {
    margin-bottom: 1rem;
  }
  
  .logo-container {
    margin-bottom: 1rem;
  }
}

/* Media query for very small screens */
@media (max-width: 380px) {
  .login-form-container {
    padding: 0.75rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .forgot-password {
    margin-top: 0.5rem;
    align-self: center;
  }
  
  .login-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;
  }
}

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

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

.login-form-wrapper > *:nth-child(2) {
  animation-delay: 0.1s;
}

.login-form-wrapper > *:nth-child(3) {
  animation-delay: 0.2s;
}

.form-group:nth-child(1) {
  animation-delay: 0.3s;
}

.form-group:nth-child(2) {
  animation-delay: 0.4s;
}
