/* ═══════════════════════════════════════
   SCALEA — Portal de clientes
   Mismo sistema visual que getscalea.com (Inter, paleta, botones)
═══════════════════════════════════════ */
/* ─── Tipografías (autoalojadas, licencia OFL — ver fonts/OFL-*.txt) ───
   Google Sans: todo el sitio (wght 400–700, GRAD −50…200). Scalea Arrows: la flecha ↵
   de Inter (Google Sans no la trae). Scalea Logo: Inter 900 recortada a las letras de SCALEA. */
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/google-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/google-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/google-sans-symbols.woff2') format('woff2'); unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF; }
@font-face { font-family: 'Scalea Arrows'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/inter-arrows.woff2') format('woff2'); unicode-range: U+2190, U+2192, U+21B5; }
@font-face { font-family: 'Scalea Logo'; font-style: normal; font-weight: 900; font-display: block;
  src: url('../fonts/inter-logo-900.woff2') format('woff2'); }

: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: 'Google Sans', 'Scalea Arrows', system-ui, -apple-system, 'Segoe UI', 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-family: 'Scalea Logo', system-ui, sans-serif;
  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: -.03em; 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: -.025em; 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; }

/* Nota legal bajo Recuérdame */
.note { font-size: .78rem; line-height: 1.55; color: var(--soft); margin-top: -.6rem; }
.note a { color: var(--ink); text-underline-offset: 3px; }

/* 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: el acceso funciona en celular
   La mitad de marca se reduce a un encabezado y el formulario toma el ancho.
════════════════════════════════════ */
@media (max-width: 767px) {
  .split { grid-template-columns: minmax(0, 1fr); min-height: 100svh; }
  .brand {
    min-height: auto; gap: 1.2rem;
    padding: 1.5rem 1.25rem 1.3rem;
    justify-content: flex-start;
  }
  .dot-field { display: none; }
  .brand-mid { display: none; }
  .brand-foot { font-size: .58rem; gap: .6rem; }
  .brand-foot span { display: none; }
  .panel { align-items: flex-start; padding: 2.2rem 1.25rem 3rem; }
  .panel-inner { max-width: none; }
}

/* 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; }
}

/* Páginas de error (Laravel): panel centrado a pantalla completa */
.error-page { min-height: 100vh; }
