/* ═══════════════════════════════════════
   SCALEA — Portal de clientes
   Mismo sistema visual que getscalea.com (Inter, paleta, botones)
═══════════════════════════════════════ */
:root {
  --dark:  #121614;
  --white: #F4F6F5;
  --ink:   #0C120C;
  --sand:  #C9B59A;
  --sage:  #769083;
  --tag:   #4F6B5D;
  --soft:  rgba(12,18,12,.6);
  --faint: rgba(12,18,12,.16);
  --hair:  rgba(12,18,12,.12);
  --error: #B25640;
  --ease:  cubic-bezier(.22, 1, .36, 1);
  --pad:   clamp(1.75rem, 4vw, 4rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--white); color: var(--ink);
  min-height: 100vh;
}
::selection { background: var(--sand); color: var(--ink); }
a { color: inherit; }
code { font-size: .9em; background: var(--hair); padding: .1em .35em; }

.logo {
  font-size: 1rem; font-weight: 900; letter-spacing: -.06em;
  text-decoration: none; color: inherit;
}
.tag {
  display: block; font-size: .66rem; font-weight: 300;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--tag); margin-bottom: 1.2rem;
}
.link-soft {
  font-size: .72rem; font-weight: 300; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: rgba(244,246,245,.6); transition: color .3s;
}
.link-soft:hover { color: var(--white); }

/* ════════════════════════════════════
   PANTALLA PARTIDA 50 / 50
════════════════════════════════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* ─── Izquierda: marca ─── */
.brand {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--white);
  padding: var(--pad);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: 100vh;
}
.brand > * { position: relative; z-index: 1; }
.dot-field {
  position: absolute !important; inset: 0; z-index: 0 !important;
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
}
.brand .tag { color: #8FA99B; }
.brand-title {
  font-size: clamp(2.2rem, 4.4vw, 4.8rem); font-weight: 900;
  letter-spacing: -.055em; line-height: .98;
  margin-bottom: 1.6rem;
}
.brand-title .muted { color: var(--sage); }
.brand-title .dot {
  display: inline-block; width: .19em; height: .19em; margin-left: .05em;
  border-radius: 50%; background: var(--sand);
}
.brand-sub {
  max-width: 440px; font-size: clamp(.92rem, 1.2vw, 1.02rem);
  line-height: 1.7; color: rgba(244,246,245,.6);
}
.brand-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .62rem; font-weight: 300; letter-spacing: .08em; color: rgba(244,246,245,.3);
}

/* ─── Derecha: contenido ─── */
.panel {
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
}
.panel-inner { width: 100%; max-width: 430px; }
.title {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem); font-weight: 800;
  letter-spacing: -.045em; line-height: 1.05; margin-bottom: .9rem;
}
.lead { font-size: .96rem; line-height: 1.65; color: var(--soft); margin-bottom: 2rem; }

/* ─── Formulario ─── */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: block; }
.field-label {
  display: block; margin-bottom: .45rem;
  font-size: .64rem; font-weight: 300; letter-spacing: .14em; text-transform: uppercase;
  color: var(--soft);
}
.field-wrap { position: relative; display: block; }
.input {
  display: block; width: 100%;
  background: transparent; border: none; border-bottom: 2px solid var(--faint);
  font-family: inherit; font-size: 1.08rem; color: var(--ink);
  padding: .6rem 0; border-radius: 0;
  transition: border-color .3s;
}
.field-wrap .input { padding-right: 2.6rem; }
.input::placeholder { color: rgba(12,18,12,.3); }
.input:focus { outline: none; border-color: var(--tag); }
.input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--white) inset; -webkit-text-fill-color: var(--ink); }

/* Ojo para mostrar / ocultar contraseña */
.eye {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--soft);
  transition: color .3s;
}
.eye:hover, .eye:focus-visible { color: var(--ink); }
.eye:focus-visible { outline: 2px solid var(--tag); outline-offset: 2px; }
.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eye .eye-closed { display: none; }
.eye[aria-pressed="true"] .eye-open { display: none; }
.eye[aria-pressed="true"] .eye-closed { display: block; }

/* Recuérdame (interruptor) */
.remember {
  display: inline-flex; align-items: center; gap: .75rem; align-self: flex-start;
  font-size: .9rem; color: var(--soft); cursor: pointer; user-select: none;
}
.remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch {
  position: relative; width: 38px; height: 22px; border-radius: 22px;
  background: var(--faint); transition: background-color .3s var(--ease); flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(12,18,12,.25);
  transition: transform .35s var(--ease);
}
.remember input:checked + .switch { background: var(--tag); }
.remember input:checked + .switch::after { transform: translateX(16px); }
.remember input:focus-visible + .switch { outline: 2px solid var(--tag); outline-offset: 3px; }
.remember:hover { color: var(--ink); }

/* ─── Botones (mismos del sitio) ─── */
.actions { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: .76rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 17px 26px; border: 1px solid var(--faint); background: transparent; color: var(--ink);
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), opacity .3s;
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease);
}
.btn:hover { color: var(--white); border-color: var(--ink); }
.btn:hover::before { transform: scaleY(1); }
.btn:focus-visible { outline: 2px solid var(--tag); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary::before { background: var(--sand); }
.btn-primary:hover { color: var(--ink); border-color: var(--sand); }
.btn-block { width: 100%; }
.btn.is-loading { opacity: .6; pointer-events: none; }
.arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ─── Mensajes ─── */
.alert {
  font-size: .9rem; line-height: 1.55;
  padding: .9rem 1rem; margin-bottom: 1.6rem;
  border-left: 3px solid var(--tag); background: rgba(79,107,93,.08); color: var(--ink);
}
.alert--error { border-color: var(--error); background: rgba(178,86,64,.08); }

/* ─── Panel provisional ─── */
.meta { border-top: 1px solid var(--hair); margin-bottom: 1.6rem; }
.meta div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--hair); }
.meta dt { font-size: .64rem; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.meta dd { font-size: .92rem; }

/* ─── Entrada suave ─── */
.panel-inner > * { animation: rise .8s var(--ease) both; }
.panel-inner > :nth-child(2) { animation-delay: .06s; }
.panel-inner > :nth-child(3) { animation-delay: .12s; }
.panel-inner > :nth-child(n+4) { animation-delay: .18s; }
.brand-mid { animation: rise 1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ════════════════════════════════════
   MÓVIL: solo aviso (portal para cómputo o tablet)
════════════════════════════════════ */
.mobile-block { display: none; }

@media (max-width: 767px) {
  body { background: var(--dark); }
  .split { display: none; }
  .mobile-block {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.6rem; min-height: 100vh; min-height: 100svh;
    padding: 2rem 1.75rem; text-align: center;
    background: var(--dark); color: var(--white);
  }
  .mobile-block-dot {
    width: 14px; height: 14px; border-radius: 50%; background: var(--sand);
    animation: ping 2.4s var(--ease) infinite;
  }
  .mobile-block-title {
    font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.2;
    max-width: 22ch;
  }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201,181,154,.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(201,181,154,0); } }

/* Tablet vertical: marca más compacta */
@media (min-width: 768px) and (max-width: 1024px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
