:root{
  --terra:#B35C3E; --sand:#E9DDC8; --olive:#6D7746; --ochre:#C8933A; --clay:#B76A4C; --sea:#2F5B62;
  --bg:#F3F4F8; --card:#fff; --text:#141414; --muted:#6B6B6B; --line:rgba(0,0,0,.08);
  --font:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

  /* margen mínimo como la referencia */
  --gap: clamp(10px, 1.6vw, 22px);

  /* tamaños grandes (como tu imagen) */
  --h2: clamp(32px, 3.4vw, 56px);
  --p:  clamp(14px, 1.3vw, 18px);
--h1: clamp(28px, 2.4vw, 38px);
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:var(--font);
  background: var(--bg);
  color: var(--text);
}

/* FULL SCREEN */
.auth-shell{
  min-height:100vh;
  padding: var(--gap);
}

/* CONTENEDOR OCUPA TODO (alto y ancho) */
.auth-screen{
  width:100%;
  height: calc(100vh - (var(--gap) * 2));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow:hidden;

  display:grid;
  grid-template-columns: 1fr 1fr;
}

/* IZQUIERDA */
.auth-left{
  position:relative;
  overflow:hidden;
  padding: clamp(20px, 2.4vw, 42px);
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(233,221,200,.70), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(47,91,98,.16), transparent 60%),
    linear-gradient(135deg, rgba(233,221,200,.70), rgba(183,106,76,.12));
}

.left-inner{
  position:relative;
  z-index:3;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand-logo{
  width:64px;
  height:64px;
  object-fit:contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.12));
}
.brand-title{
  font-weight:900;
  letter-spacing:-.2px;
  font-size: 18px;
}
.brand-sub{
  margin-top:2px;
  font-size: 13px;
  font-weight:700;
  color: rgba(20,20,20,.62);
}

.left-copy{
  max-width: 52ch;
  padding-bottom: 18px;
}
.left-copy .tiny{
  font-size: 14px;
  font-weight:700;
  color: rgba(20,20,20,.60);
  margin-bottom: 10px;
}
.left-copy h2{
  margin:0;
  font-size: var(--h2);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
}
.left-copy p{
  margin: 14px 0 0;
  font-size: var(--p);
  font-weight: 650;
  color: rgba(20,20,20,.64);
  line-height: 1.55;
}

/* MANCHA (solo dentro de la izquierda) */
.blob{
  position:absolute;
  width: 640px;
  height: 640px;
  left: -180px;
  bottom: -220px;
  border-radius: 46% 54% 63% 37% / 46% 43% 57% 54%;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,147,58,.88), transparent 55%),
    radial-gradient(circle at 70% 42%, rgba(179,92,62,.78), transparent 58%),
    radial-gradient(circle at 50% 78%, rgba(47,91,98,.48), transparent 58%);
  filter: blur(20px);
  opacity:.95;
  z-index:2;
}
.blob2{
  position:absolute;
  width: 560px;
  height: 560px;
  right: -260px;
  top: -300px;
  border-radius: 58% 42% 52% 48% / 42% 52% 48% 58%;
  background:
    radial-gradient(circle at 40% 40%, rgba(109,119,70,.82), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(233,221,200,.95), transparent 56%),
    radial-gradient(circle at 30% 80%, rgba(183,106,76,.55), transparent 60%);
  filter: blur(26px);
  opacity:.55;
  z-index:1;
}

/* DERECHA */
.auth-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(22px, 2.6vw, 46px);
  background:#fff;
}

.right-inner{
  width: min(640px, 94%);
}

.spark{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background: rgba(201,147,58,.16);
  color: var(--ochre);
  font-weight: 900;
  margin-bottom: 12px;
}

h1{
  margin:0;
  font-size: var(--h1);
  letter-spacing: -0.6px;
  font-weight: 900;
}
#subtitle{
  margin:10px 0 0;
  color: rgba(20,20,20,.62);
  font-weight: 650;
  font-size: var(--p);
  line-height: 1.5;
}

.alert{
  margin-top: 14px;
  border:1px solid rgba(179,92,62,.35);
  background: rgba(179,92,62,.08);
  color:#7A2D1A;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 850;
}

/* FORM grande */
.form{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.field span{
  font-size: 12px;
  font-weight: 900;
  color: rgba(20,20,20,.70);
  letter-spacing: .2px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(233,221,200,.40);
  border: 1px solid rgba(0,0,0,.06);
}


.input{
  height: 58px;
  width:100%;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 0 18px;
  outline:none;
  font-family: var(--font);
  font-weight: 750;
  font-size: 16px;

  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.input::placeholder{
  color: rgba(20,20,20,.35);
  font-weight: 650;
}

.input:focus{
  border-color: rgba(201,147,58,.78);
  box-shadow: 0 0 0 7px rgba(201,147,58,.14), 0 18px 34px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.pass-wrap{
  display:flex;
  gap: 12px;
  align-items:center;
}
.pass-wrap .input{ flex:1; }

.eye{
  height: 58px;
  width: 58px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.eye:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 18px 32px rgba(0,0,0,.10);
}


.btn-primary{
  height: 60px;
  border:none;
  border-radius: 18px;
  cursor:pointer;
  font-family: var(--font);
  font-weight: 950;
  letter-spacing: .2px;
  color:#fff;

  background: linear-gradient(90deg, #0B0B0F, #232329);
  box-shadow: 0 22px 40px rgba(0,0,0,.20);
  transition: transform .16s ease, box-shadow .16s ease;
  margin-top: 8px;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 30px 50px rgba(0,0,0,.24);
}
.btn-primary:active{ transform: translateY(0px); }


.footnote{
  margin-top: 10px;
  display:flex;
  align-items:flex-start;
  gap: 10px;
  color: rgba(20,20,20,.58);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}
.dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--olive);
  margin-top: 4px;
}

/* ====== RESPONSIVE REAL ====== */
@media (max-width: 980px){
  .auth-screen{
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - (var(--gap) * 2));
  }
  .auth-left{
    min-height: 380px;
  }
  .right-inner{
    width: min(560px, 96%);
    padding: 8px 0 10px;
  }
}

@media (max-width: 520px){
  :root{ --gap: 12px; }
  .brand-logo{ width:56px;height:56px; }
  .blob{ width:520px;height:520px;left:-220px;bottom:-260px; }
  .blob2{ width:480px;height:480px;right:-260px;top:-320px; }
}
.auth-right{
  background:
    radial-gradient(900px 600px at 30% 20%, rgba(233,221,200,.26), transparent 60%),
    radial-gradient(900px 600px at 80% 80%, rgba(47,91,98,.06), transparent 62%),
    #fff;
}
