/* ===== Tokens ===== */
@import "base.css";
/* Mantenemos estilos específicos de signup debajo */
:root{
  --bg-base:#F9F5FF;
  --surface-base:#FFFFFF;

  --brand:#6B5BFF;
  --brand-600:#5A49F0;

  --ink:#0F0B1E;
  --muted:#6B7280;

  --line:#E8E3F8;

  --success:#22C55E;
  --error:#EF4444;
  --warning:#F59E0B;

  --s-4:4px; --s-8:8px; --s-12:12px; --s-16:16px; --s-20:20px; --s-24:24px; --s-32:32px; --s-40:40px;

  --r-12:12px; --r-16:16px; --r-24:24px;
  --shadow-sm:0 1px 2px rgba(15,11,30,.05);
  --shadow-md:0 6px 24px rgba(15,11,30,.08);
  --ring:0 0 0 3px rgba(107,91,255,.22);
}

/* ===== Reset base ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  color:var(--ink);
  background:var(--bg-base);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit}
img,svg{display:block}

/* ===== Layout ===== */
.nu-auth{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1fr 1fr;
}

.nu-auth__aside{
  position:relative;
  padding: clamp(24px, 4vw, 48px);
  background: var(--brand);
  color:#fff;
  display:flex;
  flex-direction:column;
  /* posicionar el contenido entre la parte superior y el centro (aprox. 25% vh) */
  justify-content:flex-start;
  /* separación desde arriba: entre 40px y 160px, preferencia 25vh en pantallas grandes */
  padding-top: clamp(40px, 25vh, 160px);
  overflow:hidden;
  /* más margen a la izquierda para que el contenido respire en pantallas grandes */
  padding-left: clamp(36px, 6vw, 96px);
}

.nu-auth__panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(24px, 4vw, 48px);
}

.nu-card{
  width:100%;
  max-width:480px;
  background:var(--surface-base);
  border:1px solid var(--line);
  border-radius:var(--r-24);
  box-shadow:var(--shadow-md);
  padding:clamp(20px, 4vw, 32px);
}

.nu-card__head{ text-align:center; margin-bottom:var(--s-24); }
.nu-card__title{ margin:0 0 var(--s-8); font-weight:800; font-size:24px; line-height:1.15; }
.nu-card__subtitle{ margin:0; color:var(--muted); font-size:14px; }

.nu-signup-divider{
  height:1px;
  width:100%;
  margin:var(--s-8) 0 var(--s-24);
  background:linear-gradient(90deg, rgba(107,91,255,0) 0%, rgba(107,91,255,.35) 18%, rgba(107,91,255,.35) 82%, rgba(107,91,255,0) 100%);
}

/* ===== Logo & hero ===== */

.nu-logo{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;                 
  background:#fff;                   
  color:var(--ink);
  border-radius:9999px;             
  box-shadow:0 1px 2px rgba(15,11,30,.05);
  text-decoration:none;
  align-self: flex-start;
  max-width: fit-content;
  margin-bottom:40px;
}

.nu-logo__icon{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}

.nu-logo__text{
  font-size:14px;
  font-weight:800;
  line-height:1;
}

/* en el panel morado queda bien el contraste */
.nu-auth__aside .nu-logo{ background:#fff; }

.nu-logo__dot{ font-size:18px; line-height:1 }
.nu-logo__text{ font-size:16px }

.nu-hero__title{
  font-size: clamp(28px, 4vw, 40px);
  line-height:1.1;
  margin:0 0 var(--s-16);
  font-weight:800;
}
.nu-hero__subtitle{
  max-width:42ch;
  margin:0;
  color:rgba(255,255,255,.9);
}

/* Dots decoration */
.nu-dots{
  position:absolute; right:6%; bottom:6%;
  width:240px; height:240px;
  /* puntos más grandes y más blancos para mayor contraste */
  background-image: radial-gradient(rgba(255,255,255,0.98) 3px, transparent 3px);
  background-size:28px 28px;
  /* aumentar la visibilidad de la rejilla */
  opacity:.9;
  pointer-events:none;
}

/* ===== Buttons ===== */
.nu-button{
  appearance:none; -webkit-appearance:none;
  display:flex; align-items:center; justify-content:center;
  gap:10px; width:100%;
  border:1px solid var(--line);
  border-radius:9999px;
  padding:14px 18px;
  font-weight:800; text-decoration:none;
  background:#fff; color:var(--ink);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.nu-button:hover{ transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.nu-button:active{ transform:translateY(0); }

.nu-button--primary{
  background:var(--brand);
  color:#fff; border-color:transparent;
}
.nu-button--primary:hover{ background:var(--brand-600); }

.nu-button--google{
  background: var(--brand);  
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(15,11,30,.05), 0 2px 8px rgba(107,91,255,.22);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Hover con más contraste y elevación */
.nu-button--google:hover{
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(107,91,255,.35);
}

.nu-button__icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}


/* ===== Separator ===== */
.nu-sep{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  margin:var(--s-20) 0 var(--s-16);
}
.nu-sep__line{ height:1px; background:var(--line); display:block; }
.nu-sep__dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--ink);
  display:block;
}

/* ===== Form ===== */
.nu-form{ display:grid; gap:var(--s-16); }

.nu-field label{
  display:block; font-weight:600; font-size:14px; margin-bottom:8px;
}
.nu-field input{
  width:100%;
  height:48px;
  border:1px solid var(--line);
  border-radius:var(--r-12);
  background:#fff;
  padding:0 14px;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.nu-field input::placeholder{ color:#98a2b3; }
.nu-field input:hover{ border-color:var(--brand-200, #D4CEFF); }
.nu-field input:focus{
  border-color:var(--brand);
  box-shadow:var(--ring);
}

/* Campo con icono */
.nu-field__ctrl{
  position:relative; display:flex; align-items:center;
}
.nu-eye{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border:none; background:transparent; padding:0; cursor:pointer; color:#8a8ea3;
}
.nu-eye:hover{ color:#555a73; }
.nu-eye svg{ width:20px; height:20px; }

/* Legal */
.nu-legal{
  font-size:12px; color:var(--muted); margin:0;
}
.nu-legal a{ text-decoration:underline; }

/* Login alt */
.nu-alt{
  text-align:center; margin-top:var(--s-20); color:var(--muted); font-size:14px;
}
.nu-link{ color:var(--brand); font-weight:700; text-decoration:none; }
.nu-link:hover{ text-decoration:underline; }

/* ===== States (error/success) ===== */
.is-invalid input{ border-color:var(--error); box-shadow:0 0 0 3px rgba(239,68,68,.2); }
.is-valid   input{ border-color:var(--success); box-shadow:0 0 0 3px rgba(34,197,94,.18); }

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .nu-auth{ grid-template-columns:1fr; }
  .nu-auth__aside{
    min-height:44vh; border-bottom-left-radius:0; border-bottom-right-radius:0;
    /* en pantallas pequeñas volvemos a alinear hacia arriba para mejor lectura */
    justify-content:flex-start;
    /* mantener paddings manejables en móvil */
    padding-left: clamp(24px, 4vw, 48px);
    /* evitar exceso de espacio superior en móvil */
    padding-top: clamp(20px, 6vw, 48px);
  }
  .nu-auth__panel{ padding-top:var(--s-24); }
  .nu-card{ margin:0 auto; }
}

@media (max-width: 520px){
  .nu-card{ padding:20px; border-radius:var(--r-16); }
  .nu-card__title{ font-size:22px; }
}

/* ===== Checkbox de términos (B5) ===== */
.nu-form-row--checkbox{
  margin: var(--s-16) 0 var(--s-24);
}
.nu-checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.nu-checkbox input[type="checkbox"]{
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}
.nu-checkbox__label{
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.nu-checkbox__label a{
  color: var(--brand);
  text-decoration: underline;
}
.nu-checkbox__label a:hover{
  color: var(--brand-600);
}
.nu-field-errors{
  margin: 6px 0 0;
  padding-left: 28px;
  list-style: none;
  font-size: 12px;
  color: var(--error);
}

/* ===== Turnstile widget (B2) ===== */
.nu-turnstile{
  margin: 0 0 var(--s-16);
  display: flex;
  justify-content: center;
}
