:root{
  --green:#18a558;
  --green-dark:#0e7a40;
  --black:#0f1115;
  --white:#ffffff;
  --gray:#f4f6f8;
  --line:#d9e1e7;
  --text:#20262d;
  --muted:#66707a;
  --danger:#d93025;
  --shadow:0 20px 50px rgba(0,0,0,.14);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(24,165,88,.18) 0, transparent 18%),
    radial-gradient(circle at bottom right, rgba(0,0,0,.10) 0, transparent 20%),
    linear-gradient(135deg, #f6f8f9 0%, #edf2ef 100%);
}

.auth-body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.auth-shell{
  width:100%;
  max-width:1100px;
}

.auth-card{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  background:var(--white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  min-height:640px;
}

.auth-card-reset{
  grid-template-columns: 1fr;
  max-width:640px;
  margin:0 auto;
  min-height:auto;
}

.auth-left{
  padding:54px 48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff;
}

.auth-left-full{
  max-width:100%;
}

.auth-right{
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.10) 0, transparent 22%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.09) 0, transparent 22%),
    linear-gradient(145deg, #101510 0%, #0d2214 30%, #138646 100%);
  color:var(--white);
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.auth-right::before,
.auth-right::after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.07);
}
.auth-right::before{
  width:240px;height:240px;top:-70px;right:-70px;
}
.auth-right::after{
  width:200px;height:200px;bottom:-70px;left:-70px;
}

.auth-right-content{
  position:relative;
  z-index:2;
  max-width:360px;
}

.badge-brand{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  letter-spacing:.12em;
  margin-bottom:20px;
}

.brand-line{
  width:58px;
  height:6px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--green), #8ef0b8);
  margin-bottom:16px;
}

h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.1;
  color:#11161b;
}

h2{
  margin:0 0 12px;
  font-size:38px;
  line-height:1.1;
}

.auth-subtitle,
.auth-right p{
  margin:0 0 28px;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}

.auth-right p{
  color:rgba(255,255,255,.88);
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  font-size:14px;
  font-weight:700;
  color:#182028;
}

.field input{
  width:100%;
  height:54px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 16px;
  font-size:15px;
  outline:none;
  background:#fff;
  transition:.2s ease;
}

.field input:focus{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(24,165,88,.12);
}

.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.remember-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:#2a333b;
}

.auth-link{
  color:var(--green-dark);
  text-decoration:none;
  font-weight:700;
}

.auth-link:hover{
  text-decoration:underline;
}

.btn-primary{
  height:54px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg, var(--green), var(--green-dark));
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
  box-shadow:0 12px 24px rgba(24,165,88,.24);
}

.btn-primary:hover{
  transform:translateY(-1px);
}

.btn-primary:disabled{
  opacity:.7;
  cursor:not-allowed;
  transform:none;
}

.auth-msg{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  background:#f8fafb;
  border:1px solid #d7e0e6;
  color:#24313d;
  font-size:14px;
}

.auth-msg.error{
  background:#fff3f2;
  border-color:#f2c4bf;
  color:#8f1d13;
}

.auth-msg.ok{
  background:#effaf3;
  border-color:#b8e7c9;
  color:#116535;
}

.back-login-wrap{
  margin-top:20px;
}

.hidden{
  display:none !important;
}

@media (max-width: 920px){
  .auth-card{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .auth-right{
    min-height:260px;
    order:-1;
  }

  .auth-left{
    padding:34px 24px;
  }

  h1{
    font-size:28px;
  }

  h2{
    font-size:30px;
  }
}

@media (max-width: 520px){
  .auth-body{
    padding:14px;
  }

  .auth-left{
    padding:24px 18px;
  }

  .field input,
  .btn-primary{
    height:50px;
  }

  .auth-row{
    flex-direction:column;
    align-items:flex-start;
  }
}

.password-field{
  position:relative;
  display:flex;
  align-items:center;
}

.password-field input{
  width:100%;
  padding-right:45px;
}

.toggle-password{
  position:absolute;
  right:12px;
  border:none;
  background:none;
  cursor:pointer;
  color:#22c55e; /* verde del sistema */
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.toggle-password:hover{
  color:#16a34a;
}