/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #333;
  background-color: #FFFFFF;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container principal */
.login-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Lado esquerdo - Destaque de recursos */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-header {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  background-color: #FFFFFF;
  color: #1E293B;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  margin-right: 0.5rem;
}

.logo-text {
  color: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-transform: lowercase;
}

.logo-ai-icon {
  display: inline-block;
  font-size: 0.8rem;
  color: #FFFFFF !important;
  margin-right: 6px;
  vertical-align: middle;
  animation: ai-pulse 2s ease-in-out infinite;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  -webkit-background-clip: initial !important;
}

@keyframes ai-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.feature-highlight {
  max-width: 450px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 10;
}

/* Ícones de fundo */
.bg-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-icon {
  position: absolute;
  opacity: 0.15;
  color: #FFFFFF;
  font-size: 120px;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* Animações para os ícones */
.bg-icon:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-name: float-1;
}

.bg-icon:nth-child(2) {
  top: 60%;
  left: 10%;
  animation-name: float-2;
}

.bg-icon:nth-child(3) {
  top: 15%;
  right: 10%;
  animation-name: float-3;
}

.bg-icon:nth-child(4) {
  bottom: 15%;
  right: 10%;
  animation-name: float-4;
}

/* Keyframes para as animações */
@keyframes float-1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(60px, 40px) rotate(10deg); }
  50% { transform: translate(20px, 80px) rotate(0deg); }
  75% { transform: translate(80px, 20px) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-40px, -60px) rotate(-10deg); }
  40% { transform: translate(-80px, -20px) rotate(-20deg); }
  60% { transform: translate(-50px, -80px) rotate(-10deg); }
  80% { transform: translate(-20px, -40px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(-60px, 40px) rotate(20deg); }
  60% { transform: translate(-30px, 80px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-4 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(40px, -60px) rotate(-15deg); }
  50% { transform: translate(80px, -40px) rotate(-8deg); }
  75% { transform: translate(60px, -80px) rotate(-20deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Adicionando mais ícones para melhor distribuição */
.bg-icon:nth-child(6) {
  bottom: 40%;
  left: 3%;
  font-size: 70px;
  transform: rotate(-5deg);
}

.bg-icon:nth-child(7) {
  top: 30%;
  right: 3%;
  font-size: 65px;
  transform: rotate(15deg);
}

.bg-icon:nth-child(8) {
  bottom: 30%;
  right: 2%;
  font-size: 95px;
  transform: rotate(-20deg);
}

.bg-icon:nth-child(9) {
  top: 70%;
  left: 4%;
  font-size: 60px;
  transform: rotate(25deg);
}

.bg-icon:nth-child(10) {
  top: 2%;
  left: 30%;
  font-size: 80px;
  transform: rotate(-8deg);
}

/* Novos ícones adicionados */
.bg-icon:nth-child(11) {
  top: 15%;
  right: 4%;
  font-size: 85px;
  transform: rotate(12deg);
}

.bg-icon:nth-child(12) {
  bottom: 2%;
  right: 30%;
  font-size: 75px;
  transform: rotate(-15deg);
}

.bg-icon:nth-child(13) {
  top: 60%;
  right: 3%;
  font-size: 70px;
  transform: rotate(8deg);
}

.bg-icon:nth-child(14) {
  top: 20%;
  left: 4%;
  font-size: 65px;
  transform: rotate(-10deg);
}

.bg-icon:nth-child(15) {
  bottom: 15%;
  left: 30%;
  font-size: 90px;
  transform: rotate(5deg);
}

/* Ícones adicionais para criar moldura completa */
.bg-icon:nth-child(16) {
  top: 85%;
  right: 15%;
  font-size: 80px;
  transform: rotate(-12deg);
}

.bg-icon:nth-child(17) {
  top: 10%;
  left: 15%;
  font-size: 75px;
  transform: rotate(18deg);
}

.bg-icon:nth-child(18) {
  top: 50%;
  right: 2%;
  font-size: 90px;
  transform: rotate(-5deg);
}

.bg-icon:nth-child(19) {
  bottom: 60%;
  left: 2%;
  font-size: 85px;
  transform: rotate(10deg);
}

.bg-icon:nth-child(20) {
  bottom: 75%;
  right: 20%;
  font-size: 70px;
  transform: rotate(-15deg);
}

.bg-icon:nth-child(21) {
  top: 80%;
  left: 20%;
  font-size: 65px;
  transform: rotate(22deg);
}

.bg-icon:nth-child(22) {
  top: 35%;
  left: 3%;
  font-size: 95px;
  transform: rotate(-8deg);
}

.bg-icon:nth-child(23) {
  bottom: 45%;
  right: 4%;
  font-size: 85px;
  transform: rotate(15deg);
}

.bg-icon:nth-child(24) {
  bottom: 25%;
  left: 5%;
  font-size: 75px;
  transform: rotate(-20deg);
}

.bg-icon:nth-child(25) {
  top: 65%;
  right: 5%;
  font-size: 80px;
  transform: rotate(10deg);
}

/* Estilo da moldura de iPhone */
.iphone-mockup {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/16;
  height: auto;
  background-color: #111;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
              inset 0 0 0 2px #3a3a3c,
              inset 0 0 0 6px #000;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border: 2px solid #3a3a3c;
  z-index: 50;
}

.iphone-inner {
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

/* Botão lateral do iPhone */
.iphone-mockup:before {
  content: '';
  position: absolute;
  right: -2px;
  top: 100px;
  width: 3px;
  height: 25px;
  background-color: #3a3a3c;
  border-radius: 3px 0 0 3px;
}

/* Notch do iPhone */
.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 25px;
  background-color: #000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-speaker {
  width: 50px;
  height: 5px;
  background-color: #333;
  border-radius: 3px;
  margin-right: 8px;
}

.iphone-camera {
  width: 8px;
  height: 8px;
  background-color: #333;
  border-radius: 50%;
  margin-left: 8px;
}

.iphone-screen {
  background-color: #fff;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Barra de status do iPhone */
.iphone-status-bar {
  height: 25px;
  background-color: #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  z-index: 5;
}

.status-time {
  font-size: 12px;
}

.status-icons {
  display: flex;
  gap: 4px;
}

.status-icons .material-icons {
  font-size: 12px;
}

.chat-header {
  background-color: #1E293B;
  color: #FFFFFF;
  padding: 12px;
  display: flex;
  align-items: center;
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-contact .material-icons {
  font-size: 18px;
}

.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #F5F5F5;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23bdbdbd' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 16px;
  animation: fadeIn 0.5s ease-out;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-bubble.ai {
  background-color: #FFFFFF;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: flex-start;
  color: #1E293B;
}

.chat-bubble.ai span.material-icons {
  color: #1E293B;
  margin-right: 6px;
  font-size: 14px;
}

.chat-bubble.user {
  background-color: #1E293B;
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.chat-bubble.ai.file {
  background-color: #f0f0f0;
  padding: 8px 12px;
}

.chat-bubble.user.file {
  background-color: #2D3748;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-preview .material-icons {
  font-size: 18px;
  color: #e74c3c;
}

.file-name {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-input-area {
  background-color: #FFFFFF;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #E2E8F0;
}

.chat-input-area input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
}

.chat-input-area .send-icon {
  color: #FFFFFF;
  cursor: pointer;
  font-size: 16px;
  background-color: #1E293B;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-input-area .send-icon:hover {
  background-color: #2D3748;
  transform: scale(1.05);
}

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

/* Lado direito - Formulário de login */
.login-right {
  flex: 1;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  overflow: hidden;
}

.login-content {
  max-width: 450px;
  width: 100%;
}

.login-content h1 {
  font-size: 2.5rem;
  color: #1E293B;
  margin-bottom: 1rem;
}

.login-content > p {
  color: #4A5568;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Formulário */
.login-form {
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1E293B;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon span.material-icons {
  position: absolute;
  left: 1rem;
  color: #1E293B;
}

.input-with-icon input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #1E293B;
  box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.1);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: #1E293B;
}

.forgot-password {
  color: #1E293B;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #4A5568;
}

.login-btn {
  width: 100%;
  background-color: #1E293B;
  color: #FFFFFF;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.login-btn:hover {
  background-color: #2D3748;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.error-message {
  color: #E53E3E;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.login-footer {
  text-align: center;
  color: #4A5568;
}

.login-footer .highlight {
  color: #1E293B;
  font-weight: 700;
  transition: color 0.3s ease;
}

.login-footer .highlight:hover {
  color: #4A5568;
}

/* Responsividade */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column-reverse;
  }
  
  .login-right {
    padding: 2rem;
    height: 100%;
  }
  
  .login-left {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-right {
    padding: 1.5rem;
  }
  
  .login-content h1 {
    font-size: 2rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .admin-modal-content {
    width: 98vw;
    min-width: unset;
    max-width: 100vw;
  }
  .admin-modal-body > form > div[style*='display: flex'] {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .iphone-mockup {
    margin: 24px auto 0 auto;
  }
}

/* Modal de Esqueci Minha Senha */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #FFFFFF;
  margin: 10% auto;
  padding: 0;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1E293B;
}

.close-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #1E293B;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin-bottom: 1.5rem;
  color: #666;
}

.reset-btn {
  width: 100%;
  padding: 0.8rem;
  background-color: #1E293B;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 1rem;
}

.reset-btn:hover {
  background-color: #0F172A;
}

.message {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal de Contato */
.contact-modal {
  max-width: 600px !important;
  width: 95% !important;
}

.contact-form-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container iframe {
  border: none;
  border-radius: 8px;
} 