﻿/* Estilos para o modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

/* Estilos para o popup da área do condômino */
.condominio-popup {
  position: relative;
  background: linear-gradient(135deg, #00538d 0%, #005189 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 900px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  font-family: "Montserrat", sans-serif;
  animation: fadeInUp 0.6s ease-out;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  margin: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%)!important;
}

/* Header do popup */
.popup-header {
  text-align: center;
  padding: 30px 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.logo-popup {
  height: 60px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.popup-header h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Conteúdo principal */
.popup-content {
  display: flex;
  min-height: 500px;
}

/* Lado esquerdo - Formulário de login */
.popup-left {
  flex: 1;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  background: #fff;
  color: #333;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: #999;
  font-weight: 400;
}

.btn-acessar {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.btn-acessar:hover {
  background: linear-gradient(135deg, #0052a3 0%, #004080 100%);
  transform: translateY(-2px);
}

.btn-acessar i {
  font-size: 18px;
}

.form-links {
  text-align: center;
}

.link-esqueci {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.link-esqueci:hover {
  color: #004080;
  background: rgba(0, 102, 204, 0.1);
  transform: translateY(-1px);
}

.link-esqueci i {
  font-size: 16px;
}

/* Lado direito - Botões de ação e área da atendente */
.popup-right {
  flex: 1;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.atendente-area {
  text-align: center;
  margin-bottom: 30px;
  height: 200px;
  background-color:#ccc;
  background-image: url(assets/img/atendente.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 56px;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-whatsapp:hover::before {
  left: 100%;
}

.btn-whatsapp:hover {
  background: #004080;
  color: #fff;
  transform: translateY(-2px);
}

.btn-primeiro-acesso {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
}

.btn-primeiro-acesso:hover {
  background: #004080;
  color: #fff;
  transform: translateY(-2px);
}

.btn-segunda-via {
  background: linear-gradient(135deg, #6c5ce7 0%, #5f3dc4 100%);
  color: #fff;
}

.btn-segunda-via:hover {
  background: #004080;
  color: #fff;
  transform: translateY(-2px);
}

.action-buttons a i {
  font-size: 18px;
  margin-right: 10px;
}

/* Botão fechar */
.fechado {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10000;
  background:transparent;
  box-shadow: none;
}

.fechado:hover {
  transform: rotate(90deg);
  color: #fff;
  background-color:#0066cc;
}

/* Responsividade */
@media (max-width: 768px) {
  .condominio-popup {
    width: 95vw;
    max-height: 95vh;
    margin: 10px;
    overflow-y: auto;
  }

  .popup-content {
    flex-direction: column;
    min-height: auto;
  }

  .popup-left,
  .popup-right {
    padding: 30px 20px;
  }

  .popup-header {
    padding: 20px 20px 15px;
  }

  .popup-header h2 {
    font-size: 24px;
  }

  .logo-popup {
    height: 50px;
  }

  .atendente-photo {
    width: 100px;
    height: 100px;
  }

  .atendente-photo i {
    font-size: 60px;
  }

  .action-buttons a {
    padding: 14px 20px;
    font-size: 14px;
    min-height: 50px;
  }

  .btn-acessar {
    padding: 14px 20px;
    font-size: 15px;
  }

  .form-group input {
    padding: 14px 18px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .condominio-popup {
    width: 98vw;
    margin: 5px;
    overflow-y: auto;
  }

  .popup-left,
  .popup-right {
    padding: 25px 15px;
  }

  .popup-header {
    padding: 15px 15px 10px;
  }

  .popup-header h2 {
    font-size: 20px;
    font-size: 20px;
  }

  .logo-popup {
    height: 40px;
  }

  .atendente-photo {
    width: 80px;
    height: 80px;
  }

  .atendente-photo i {
    font-size: 50px;
  }

  .action-buttons a {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 45px;
  }

  .btn-acessar {
    padding: 12px 16px;
    font-size: 14px;
  }

  .form-group input {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.condominio-popup.active {
  transform: scale(1);
  opacity: 1;
}

.popup-left,
.popup-right {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Melhorias de acessibilidade */
.btn-acessar:focus,
.form-group input:focus,
.action-buttons a:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
