@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

body {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff, #fff5eb);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Caixinha que envolve input + ícone + olho */
.input-icon-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Ícone dentro do input (lado esquerdo) */
.input-icon {
  width: 18px;
  height: 18px;
  fill: #ff6600;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  pointer-events: none;
}

.input-icon-box input {
  width: 100%;
  padding-left: 42px !important;
  padding-right: 42px !important;
}

/* Olho */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #ff8c00;
  opacity: 0.7;
  transition: 0.2s ease;
  user-select: none;
}

.toggle-password:hover {
  opacity: 1;
  color: #ff6600;
}

/* CONTAINER PRINCIPAL */
.main-login {
  width: 1200px;
  max-width: 95%;
  height: 600px;
  background: #ffffff;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
}

/* LADO ESQUERDO */
.left-login {
  flex: 1;
  background: linear-gradient(160deg, #006b2f, #00b04f);
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 40px;
  text-align: center;
}

.left-login h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.left-login-image {
  width: 180px;
  max-width: 80%;
  animation: float 4s ease-in-out infinite;

  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.25))
    drop-shadow(0 8px 25px rgba(0,0,0,0.35));
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* LADO DIREITO */
.right-login {
  flex: 1;
  background: linear-gradient(160deg, #ff6600, #ff8c00);

  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* CARD */
.card-login {
  width: 400px;
  max-width: 90%;
  background: #ffffff;
  border: 2px solid #ff6600;
  border-radius: 20px;
  padding: 45px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.card-login h1 {
  color: #ff6600;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

/* INPUTS */
.textfield {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 25px;
}

.textfield label {
  color: #333333;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.textfield input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  background-color: #ffffff;
  color: #333;
  font-size: 15px;
  transition: 0.3s;
}

.textfield input:focus {
  border-color: #ff6600;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}

/* BOTÃO */
.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6600, #ff8c00);
  color: #ffffff;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-login:hover {
  background: linear-gradient(135deg, #ff4500, #ff6600);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
  transform: translateY(-2px);
}

.btn-login .loader {
  position: absolute;
  right: 18px;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

/* RESPONSIVO */
@media (max-width: 850px) {
  .main-login {
    flex-direction: column;
    height: auto;
    width: 95%;
    border-radius: 10px;
  }
  .left-login, .right-login { width: 100%; }
  .left-login { padding: 40px 15px; }
  .left-login h1 { font-size: 1.6rem; }
  .left-login-image { width: 280px; }
  .card-login { width: 92%; margin: 25px 0; padding: 35px 25px; }
}

/* REMEMBER */
.remember-box {
  margin-top: -10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
  user-select: none;
}

.remember-box input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #ff6600;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: 0.2s ease-in-out;
}

.remember-box input[type="checkbox"]:hover {
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.3);
}

.remember-box input[type="checkbox"]::after {
  content: "✔";
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  position: absolute;
  top: -1px;
  left: 3px;
  opacity: 0;
  transition: 0.2s;
}

.remember-box input[type="checkbox"]:checked {
  background: #ff6600;
  border-color: #ff6600;
}

.remember-box input[type="checkbox"]:checked::after {
  opacity: 1;
}

.remember-box label:hover {
  color: #ff6600;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  padding: 15px 25px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }

#toast-icon { margin-right: 12px; display: flex; align-items: center; font-size: 20px; }
#toast-message { flex: 1; font-size: 15px; }

/* RESPONSIVO */
/* RESPONSIVO */
@media (max-width: 850px) {

  body {
    height: auto;
    padding: 20px 0;
  }

  .main-login {
    flex-direction: column;
    height: auto;
    width: 94%;
    border-radius: 14px;
  }

  .left-login,
  .right-login {
    width: 100%;
  }

  .left-login {
    padding: 25px 15px;
    min-height: 180px;
    gap: 10px;
  }

  .left-login h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .left-login-image {
    width: 120px;
    max-width: 45%;
  }

  .card-login {
    width: 92%;
    margin: 20px 0;
    padding: 30px 20px;
  }

}