/* Estilos para os modais */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.modal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 20px 0;
}

.modal-container {
  background-color: #0e4d1e;
  border-radius: 20px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
  margin-bottom: 15px;
  transform: translateY(50px);
  opacity: 0;
  animation: modalFadeIn 0.6s ease-out forwards;
}

@keyframes modalFadeIn {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  width: 100%;
  padding: 20px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  width: 100%;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* Tabs para alternar entre login e cadastro */
.tabs-container {
  display: flex;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 5px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  color: white;
}

.tab.active {
  background: linear-gradient(to right, #36d6ff, #4eff8a);
  color: black;
}

/* Estilo para os campos de formulário */
.form-group {
  margin-bottom: 15px;
  position: relative;
}

.input-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(to right, #36d6ff, #4eff8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.input-icon i {
  color: #0e4d1e;
  font-size: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 12px 12px 12px 55px;
  border: none;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Botão de mostrar/ocultar senha */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  z-index: 3;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.password-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.password-toggle i {
  font-size: 1.2rem;
}

/* Botão de gradiente */
.btn-gradient {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(to right, #36d6ff, #4eff8a);
  color: black;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin: 20px 0;
}

.btn-gradient:active {
  transform: scale(0.98);
}

/* Link de esqueceu a senha */
.forgot-password {
  text-align: right;
  margin-top: 5px;
}

.forgot-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}

.forgot-link:hover {
  opacity: 1;
}

/* Texto de termos */
.terms-text {
  text-align: center;
  font-size: 0.75rem;
  color: white;
  margin: 0 auto 15px;
  padding: 8px 12px;
  line-height: 1.3;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  font-weight: 400;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Imagens no rodapé do modal */
.modal-footer-images {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 90%;
  max-width: 350px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-image {
  width: 48%;
  border-radius: 10px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.footer-image:hover {
  transform: translateY(-5px);
}

/* Temas para os modais */
[data-theme="dark"] .modal-container {
  background-color: #0e4d1e;
}

[data-theme="dark"] .btn-gradient,
[data-theme="dark"] .input-icon,
[data-theme="dark"] .tab.active {
  background: linear-gradient(to right, #36d6ff, #4eff8a);
}

[data-theme="blue"] .modal-container {
  background-color: #0f1a2b;
}

[data-theme="blue"] .btn-gradient,
[data-theme="blue"] .input-icon,
[data-theme="blue"] .tab.active {
  background: linear-gradient(to right, #36d6ff, #3690ff);
}

[data-theme="purple"] .modal-container {
  background-color: #1f0f2b;
}

[data-theme="purple"] .btn-gradient,
[data-theme="purple"] .input-icon,
[data-theme="purple"] .tab.active {
  background: linear-gradient(to right, #b36dff, #ff6de9);
}

/* Responsividade para telas menores */
@media (max-width: 480px) {
  .modal-container {
    width: 95%;
    max-width: 320px;
  }

  .terms-text {
    width: 95%;
    max-width: 320px;
    font-size: 0.7rem;
  }

  .modal-footer-images {
    width: 95%;
    max-width: 320px;
  }
}

/* Adicionar ou atualizar estas regras para o modal de depósito */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal {
  background-color: var(--modal-bg);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal form {
  padding: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--border-color);
  border-radius: var(--button-radius);
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.btn-gradient {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--button-radius);
  background: var(--gradient-primary);
  color: black;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-gradient:hover {
  transform: translateY(-2px);
}

.btn-gradient:active {
  transform: translateY(0);
}

.terms-agreement {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 15px;
  padding: 0 15px;
  line-height: 1.4;
}
