* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e8 100%);
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== HEADER SIMPLES ===== */
.login-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  padding: 15px 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.plant-logo {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #2d5a42, #4a7c5f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.logo-link:hover .plant-logo {
  transform: scale(1.1);
}

.logo-text {
  font-weight: 700;
  font-size: 1.3rem;
  color: #1a1a1a;
  letter-spacing: 1px;
}

/* ===== CONTAINER PRINCIPAL DO LOGIN ===== */
main {
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-hero {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px);
}

.login-container {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  width: 1000px;
  max-width: 100%;
  min-height: 600px;
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* ===== FORMULÁRIO ATIVO ===== */
.form-active {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #ffffff;
  padding: 0 60px;
  position: relative;
}

/* ===== FORMULÁRIOS ===== */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

form h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.2;
}

/* ===== GRUPOS DE INPUT ===== */
.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.input-group input {
  background-color: #f8f8f8;
  border: 2px solid transparent;
  padding: 16px 20px 16px 50px;
  width: 100%;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  color: #1a1a1a;
}

.input-group input:focus {
  outline: none;
  border-color: #2d5a42;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(45, 90, 66, 0.1);
}

.input-group input::placeholder {
  color: #999;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.input-group input:focus + .input-icon {
  color: #2d5a42;
}

/* ===== BOTÕES ===== */
.login-btn {
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, #2d5a42, #4a7c5f);
  color: white;
  font-weight: 600;
  padding: 16px 45px;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(45, 90, 66, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

/* ===== LINK ESQUECI SENHA ===== */
.forgot-password {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 15px 0;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.forgot-password:hover {
  color: #2d5a42;
}

/* ===== ILUSTRAÇÃO LATERAL ===== */
.login-illustration {
  flex: 0 0 50%;
  background: linear-gradient(135deg, #2d5a42 0%, #4a7c5f 100%);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 60px;
  position: relative;
  overflow: hidden;
}

.illustration-content {
  text-align: center;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.illustration-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2.5rem;
}

.illustration-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.illustration-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
  max-width: 350px; /* Limita a largura do texto */
}

.ghost-btn {
  border-radius: 25px;
  border: 2px solid white;
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  min-width: 200px; /* Largura mínima */
  justify-content: center; /* Centraliza o texto */
}

.ghost-btn:hover {
  background: white;
  color: #2d5a42;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}



/* ===== RESPONSIVIDADE ===== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .login-container {
    width: 90%;
    min-height: 550px;
  }
  
  .form-active {
    padding: 0 40px;
  }
  
  .login-illustration {
    padding: 0 40px;
  }
  
  .illustration-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .illustration-content h2 {
    font-size: 1.8rem;
  }
  
  .illustration-content p {
    font-size: 1rem;
  }
}

/* Tablets Pequenos e Mobile (até 768px) */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    min-height: auto;
    width: 95%;
  }
  
  .form-active {
    flex: 0 0 60%;
    padding: 40px 30px;
    width: 100%;
  }
  
  .login-illustration {
    flex: 0 0 40%;
    padding: 30px;
  }
  
  form {
    max-width: 100%;
  }
  
  form h1 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

/* Mobile (até 480px) */
@media (max-width: 480px) {
  .login-header {
    padding: 12px 20px;
  }
  
  .plant-logo {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .login-hero {
    padding: 20px 15px;
  }
  
  .form-active {
    padding: 30px 20px;
  }
  
  .login-illustration {
    padding: 25px 20px;
  }
  
  form h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .input-group input {
    padding: 14px 16px 14px 45px;
    font-size: 0.9rem;
  }
  
  .login-btn {
    padding: 14px 40px;
    font-size: 0.95rem;
  }
  
  .illustration-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .illustration-content h2 {
    font-size: 1.4rem;
  }
  
  .illustration-content p {
    font-size: 0.9rem;
  }
  
  .ghost-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}