* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ff8a50 0%, #ff6b35 50%, #ff5722 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Animação de fundo */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
  z-index: -1;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
  }
}

.principal {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  z-index: 1;
}

/* Container principal */
.container {
  background: rgba(240, 248, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5722, #ff8a50, #ff5722);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Logo/Branding */
.logo-area {
  text-align: center;
  padding: 30px 20px 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 87, 34, 0.1),
    rgba(255, 138, 80, 0.1)
  );
}

.logo-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff5722, #ff8a50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 10px 25px rgba(255, 87, 34, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.logo-icon i {
  font-size: 32px;
  color: white;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  color: #ff5722;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

/* Card de Login */
.login-card {
  padding: 35px;
  text-align: center;
}

.login-card h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Formulário */
.formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
}

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

.icon-input {
  position: absolute;
  left: 15px;
  color: #999;
  font-size: 16px;
  z-index: 2;
  transition: all 0.3s ease;
}

.input-wrapper.focused .icon-input {
  color: #ff5722;
  transform: scale(1.1);
}

.formulario input {
  width: 100%;
  padding: 16px 20px 16px 45px;
  border: 2px solid #e1e1e1;
  border-radius: 16px;
  font-size: 16px;
  background: #fff;
  transition: all 0.3s ease;
  color: #333;
  outline: none;
}

.formulario input::placeholder {
  color: #aaa;
  transition: all 0.3s ease;
}

.formulario input:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
  transform: translateY(-2px);
}

.formulario input:focus::placeholder {
  opacity: 0.6;
}

/* Toggle password */
.toggle-password {
  position: absolute;
  right: 15px;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: all 0.3s ease;
}

.toggle-password:hover {
  color: #ff5722;
}

/* Esqueceu senha */
.forgot-password {
  text-align: right;
  margin-top: -10px;
}

.forgot-password a {
  color: #ff5722;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password a:hover {
  color: #e64a19;
  text-decoration: underline;
}

/* Botões */
.btn-login {
  background: linear-gradient(135deg, #ff5722, #ff8a50);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-login::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: all 0.6s ease;
}

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

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 87, 34, 0.4);
}

.btn-login:active {
  transform: translateY(-1px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e1e1e1;
}

.divider span {
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

/* Botão registro */
.btn-register {
  background: transparent;
  color: #ff5722;
  border: 2px solid #ff5722;
  padding: 14px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-register:hover {
  background: #ff5722;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.2);
}

/* Seção de contatos modernizada */
.contatos-section {
  margin-top: 30px;
  text-align: center;
}

.contatos-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contatos {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  min-width: 80px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-link i {
  font-size: 24px;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-link.instagram:hover i {
  color: #e4405f;
}

.social-link.whatsapp:hover i {
  color: #25d366;
}

.social-link.location:hover i {
  color: #ff5722;
}

/* Responsividade */
@media (max-width: 480px) {
  .principal {
    padding: 15px;
  }

  .container {
    margin: 10px 0;
  }

  .login-card {
    padding: 20px;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
  }

  .logo-icon i {
    font-size: 28px;
  }

  .brand-name {
    font-size: 24px;
  }

  .contatos {
    gap: 10px;
  }

  .social-link {
    min-width: 70px;
    padding: 12px 8px;
  }

  .social-link i {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .formulario input {
    padding: 14px 18px 14px 40px;
    font-size: 15px;
  }

  .btn-login,
  .btn-register {
    padding: 14px 20px;
    font-size: 15px;
  }
}
