:root{
  --blue:#9CC6DB;
  --cream:#FBF6DE;
  --orange:#CF4D03;
  --sand:#DDBA7D;

  /* base oscuro */
  --bg0:#070A0F;
  --bg1:#0B1220;
  --bg2:#0F172A;

  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --muted2:rgba(234,240,255,.55);

  --line:rgba(234,240,255,.10);
  --line2:rgba(234,240,255,.16);

  --shadow: 0 28px 80px rgba(0,0,0,.55);
  --r: 26px;

  --font:"Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);

  background:
    radial-gradient(900px 500px at 10% 10%, rgba(156,198,219,.16), transparent 60%),
    radial-gradient(760px 520px at 90% 30%, rgba(207,77,3,.12), transparent 58%),
    radial-gradient(700px 420px at 50% 100%, rgba(221,186,125,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg2));
}

.authShell{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:18px;
}

.authCard{
  width:min(1080px, 100%);
  border-radius: calc(var(--r) + 10px);
  overflow:hidden;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.08);
  background: rgba(15,23,42,.22);
  backdrop-filter: blur(12px);

  display:grid;
  grid-template-columns: 1fr 1.05fr;
}

/* ===== LEFT: dots ===== */
.panelDots{
  position:relative;
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(156,198,219,.18), rgba(15,23,42,.35)),
    radial-gradient(640px 320px at 20% 0%, rgba(221,186,125,.16), transparent 65%);
  border-right: 1px solid rgba(255,255,255,.08);
}

.dotsLayer{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.dot{
  position:absolute;
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(251,246,222,.60);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 14px 26px rgba(0,0,0,.18);
  opacity:.92;
  will-change: transform;
}

.panelInfo{
  position:absolute;
  inset:0;
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.panelTop{ display:flex; flex-direction:column; gap:6px; }

.panelBadge{
  display:inline-flex;
  align-self:flex-start;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
  letter-spacing:.2px;
}

.panelSub{
  font-size:13px;
  font-weight:650;
  color: rgba(234,240,255,.75);
}

.panelMiniCard{
  width:min(380px, 100%);
  border-radius: 18px;
  padding:16px 16px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
}

.panelMiniCard h3{
  margin:0;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}

.panelMiniCard p{
  margin:8px 0 0;
  font-size:13px;
  line-height:1.55;
  color: rgba(234,240,255,.72);
  font-weight:600;
}

/* ===== RIGHT: form ===== */
.panelForm{
  background:
    radial-gradient(700px 440px at 70% 0%, rgba(207,77,3,.14), transparent 65%),
    linear-gradient(180deg, rgba(7,10,15,.60), rgba(15,23,42,.35));
  padding:22px;
  display:flex;
  flex-direction:column;
}

.brandTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.brandLeft{ display:flex; flex-direction:column; gap:4px; }
.brandTitle{
  font-weight:950;
  letter-spacing:.2px;
  font-size:14px;
  color: rgba(234,240,255,.92);
}
.brandPlace{
  font-weight:700;
  font-size:12px;
  color: rgba(234,240,255,.64);
}

.brandLogo{
  width:46px;
  height:46px;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display:grid;
  place-items:center;
}
.brandLogo img{ width:100%; height:100%; object-fit:cover; }

.formWrap{
  margin-top:auto;
  margin-bottom:auto;

  /* ✅ solo el formulario resalta */
  border-radius: calc(var(--r) + 6px);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  padding: 22px;
}

.formHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}

.formHead h1{
  margin:0;
  font-size:34px;
  font-weight:950;
  letter-spacing:.2px;
}

.formHead p{
  margin:4px 0 0;
  font-size:13px;
  font-weight:650;
  color: rgba(234,240,255,.68);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-weight:850;
  font-size:12px;
  color: rgba(234,240,255,.82);
  white-space:nowrap;
}
.chipLed{
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(207,77,3,.95);
  box-shadow: 0 0 0 4px rgba(207,77,3,.18);
}

.alert{
  border-radius: 16px;
  padding: 11px 12px;
  font-weight:800;
  font-size:12.5px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  margin-bottom: 12px;
}
.alertWarn{
  border-color: rgba(221,186,125,.22);
  background: rgba(221,186,125,.10);
  color: rgba(251,246,222,.95);
}
.alertErr{
  border-color: rgba(207,77,3,.25);
  background: rgba(207,77,3,.10);
  color: rgba(255,230,220,.95);
}

.form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:7px;
}

label{
  font-size:11px;
  font-weight:900;
  letter-spacing:1.1px;
  color: rgba(234,240,255,.65);
  text-transform:uppercase;
}

input{
  width:100%;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(234,240,255,.92);
  padding: 12px 13px;
  font-family: var(--font);
  font-weight:650;
  outline:none;
  transition: transform .12s ease, border-color .14s ease, box-shadow .16s ease;
}

input::placeholder{ color: rgba(234,240,255,.35); }

input:focus{
  border-color: rgba(156,198,219,.55);
  box-shadow: 0 14px 34px rgba(156,198,219,.12);
  transform: translateY(-1px);
}

/* password wrapper */
.passWrap{
  position:relative;
  display:flex;
  align-items:center;
}
.passWrap input{ padding-right: 46px; }

.passToggle{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width:36px;
  height:36px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(234,240,255,.75);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, border-color .14s ease, background .14s ease;
}
.passToggle:hover{
  transform: translateY(-50%) translateY(-1px);
  border-color: rgba(156,198,219,.35);
  background: rgba(0,0,0,.28);
}
.passToggle svg{ width:18px; height:18px; }
.hide{ display:none; }

/* CTA */
.btnPrimary{
  margin-top: 6px;
  border:none;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: var(--font);
  font-weight:950;
  letter-spacing:.9px;
  text-transform:uppercase;
  cursor:pointer;

  color: rgba(10,10,10,.92);
  background: linear-gradient(135deg, rgba(207,77,3,1), rgba(221,186,125,1));
  box-shadow: 0 22px 48px rgba(207,77,3,.20);
  transition: transform .12s ease, filter .14s ease;
  width: min(220px, 100%);
  align-self: flex-end;
}
.btnPrimary:hover{ transform: translateY(-1px); filter: saturate(1.05); }
.btnPrimary:active{ transform: translateY(0) scale(.99); }

.helpLine{
  margin-top: 10px;
  font-size: 12px;
  font-weight:700;
  color: rgba(234,240,255,.60);
}
.helpLine span{
  color: rgba(251,246,222,.92);
  font-weight:900;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .authCard{ grid-template-columns: 1fr; }
  .panelDots{ min-height: 260px; border-right:none; border-bottom:1px solid rgba(255,255,255,.08); }
  .formWrap{ margin-top: 0; margin-bottom: 0; }
}

@media (max-width: 520px){
  .panelInfo{ padding:18px; }
  .panelMiniCard{ padding:14px; }
  .panelMiniCard h3{ font-size:16px; }
  .formWrap{ padding:16px; }
  .formHead h1{ font-size:28px; }
  .btnPrimary{ align-self: stretch; width:100%; }
  .chip{ display:none; } /* en móvil se ve más limpio */
}
