/* ============================================
   LOGIN.CSS - Estilos exclusivos del login
   ============================================ */

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-container {
  width: 1100px;
  max-width: 100%;
  min-height: 650px;
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

/* PANEL IZQUIERDO */
.left-panel {
  width: 48%;
  position: relative;
  background: linear-gradient(135deg, #f7f7f7, #ececec);
  overflow: hidden;
}

.logo-section {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px;
}

.logo-section img {
  width: 260px;
  margin-bottom: 40px;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--primary-green-login);
  margin-bottom: 30px;
}

.logo-section p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.logo-section span {
  color: var(--primary-green-login);
  font-weight: 700;
}

.left-panel::before {
  content: "";
  position: absolute;
  width: 850px;
  height: 850px;
  background: white;
  border-radius: 50%;
  left: -350px;
  bottom: -150px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}

.left-panel::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  left: -260px;
  bottom: -100px;
}

.leaf-design {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(120deg, #1f4f0f, #4ea21d, #8edb4d);
  clip-path: polygon(0 100%, 0 35%, 100% 0, 100% 100%);
}

.leaf-design::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 3px;
  background: rgba(255,255,255,.6);
  top: 80px;
  left: -100px;
  transform: rotate(-15deg);
}

/* PANEL DERECHO */
.right-panel {
  width: 52%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f1f3ee;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-green-login);
  font-size: 34px;
}

.right-panel h1 {
  text-align: center;
  margin-top: 25px;
  color: #333;
  font-size: 48px;
}

.right-panel h1 span {
  color: var(--primary-green-login);
}

.subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 40px;
}

.right-panel label {
  display: block;
  margin-bottom: 10px;
  color: #444;
  font-weight: 500;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group i:first-child {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.eye {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  cursor: pointer;
}

.right-panel input {
  width: 100%;
  height: 58px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding-left: 50px;
  padding-right: 50px;
  font-size: 15px;
  outline: none;
}

.right-panel input:focus {
  border-color: var(--primary-green-login);
}

.forgot {
  display: block;
  text-align: right;
  color: var(--primary-green-login);
  text-decoration: none;
  margin-bottom: 25px;
  font-size: 14px;
}

.right-panel button {
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #2f730b, var(--primary-green-login));
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: .3s;
}

.right-panel button:hover {
  transform: translateY(-2px);
}

.right-panel footer {
  margin-top: 40px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .left-panel {
    min-height: 300px;
  }

  .right-panel h1 {
    font-size: 38px;
  }
}