* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body, html {
  height: 100%;
  background-color: #f8f9fa;
  overflow: hidden;
}

.login-container {
  display: flex;
  height: 100vh;
}

/* --- LADO ESQUERDO (GRADIENTE) --- */
.login-left {
  flex: 0 0 40%;
  background: linear-gradient(135deg, #0F9D58 0%, #0B7D47 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* --- PADRÃO DE FUNDO COM FOLHAS E PLAY --- */
.pattern-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: 
    /* Folhas triangulares translúcidas */
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230B7D47' fill-opacity='0.08'%3E%3Cpolygon points='30,45 30,20 25,20 30,15 35,20 30,20'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2321B66F' fill-opacity='0.06'%3E%3Cpolygon points='40,60 40,25 32,25 40,18 48,25 40,25'/%3E%3C/g%3E%3C/svg%3E"),
    /* Folhas menores */
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230F9D58' fill-opacity='0.06'%3E%3Cpolygon points='20,30 20,15 17,15 20,12 23,15 20,15'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 
    60px 60px,
    80px 80px,
    40px 40px;
  background-position: 
    10% 15%,
    85% 25%,
    45% 60%,
    20% 75%,
    70% 85%,
    30% 40%,
    90% 55%,
    15% 90%,
    65% 10%,
    50% 30%,
    80% 70%,
    25% 20%,
    95% 45%,
    35% 80%,
    75% 15%,
    40% 65%,
    55% 50%,
    5% 35%,
    60% 25%,
    12% 60%,
    88% 80%,
    35% 55%,
    72% 40%,
    18% 85%;
  animation: patternFloat 30s ease-in-out infinite;
  opacity: 0.7;
  z-index: 0;
}

@keyframes patternFloat {
  0%, 100% {
    background-position: 
      10% 15%,
      85% 25%,
      45% 60%,
      20% 75%,
      70% 85%,
      30% 40%,
      90% 55%,
      15% 90%,
      65% 10%,
      50% 30%,
      80% 70%,
      25% 20%,
      95% 45%,
      35% 80%,
      75% 15%,
      40% 65%,
      55% 50%,
      5% 35%,
      60% 25%,
      12% 60%,
      88% 80%,
      35% 55%,
      72% 40%,
      18% 85%;
    opacity: 0.7;
  }
  50% {
    background-position: 
      15% 20%,
      90% 30%,
      50% 65%,
      25% 80%,
      75% 90%,
      35% 45%,
      95% 60%,
      20% 95%,
      70% 15%,
      55% 35%,
      85% 75%,
      30% 25%,
      100% 50%,
      40% 85%,
      80% 20%,
      45% 70%,
      60% 55%,
      10% 40%,
      65% 30%,
      17% 65%,
      92% 85%,
      38% 60%,
      77% 45%,
      22% 90%;
    opacity: 0.8;
  }
}

.login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 20s ease-in-out infinite;
  z-index: 0;
}

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

.brand-section {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 100%;
  padding: 20px;
}

/* --- ÍCONE CENTRAL FORESTPLAY --- */
.icon-wrapper {
  margin-bottom: 32px;
  animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

.forestplay-icon {
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
  animation: iconGlow 4s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2)) drop-shadow(0 0 30px rgba(255,255,255,0.1));
  }
  50% {
    filter: drop-shadow(0 6px 25px rgba(0,0,0,0.25)) drop-shadow(0 0 40px rgba(255,255,255,0.15));
  }
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  word-wrap: break-word;
}

.brand-subtitle {
  font-size: 1rem;
  margin-top: 10px;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.6;
  word-wrap: break-word;
}


/* --- LADO DIREITO (FORMULÁRIO) --- */
.login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 40px;
  min-width: 0;
}

.login-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-form {
  background: #ffffff;
  padding: 48px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.login-form h2 {
  font-size: 1.875rem;
  color: #0B7D47;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.login-form form {
  margin-bottom: 24px;
}

.login-form label {
  font-size: 0.875rem;
  color: #1C1C1C;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  background: #fff;
  color: #1C1C1C;
}

.login-form input::placeholder {
  color: #9CA3AF;
}

.login-form input:focus {
  border-color: #0F9D58;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15,157,88,0.1);
}

.login-form button {
  width: 100%;
  padding: 14px;
  background: #0F9D58;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.login-form button:hover {
  background: #0B7D47;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,157,88,0.3);
}

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

.support-links {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.support-links p {
  font-size: 0.875rem;
  color: #4B5563;
  margin-bottom: 12px;
}

.support-links a {
  color: #0F9D58;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.support-links a:hover {
  color: #0B7D47;
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }

  .login-left {
    display: none;
  }

  .login-right {
    flex: none;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 20px;
  }

  .login-form-wrapper {
    max-width: 100%;
  }

  .login-form {
    padding: 32px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }

  .brand-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .login-form {
    padding: 24px 20px;
  }

  .login-form h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
}

