@import url("../shared/maya-motion.css?v=20260826-motion1");

:root {
  --blue: #4f70ad;
  --blue-light: #6f92d0;
  --text: #f1f3f7;
  --line: rgba(255,255,255,.82);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  background: #000;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(50, 82, 166, .20), transparent 34%),
    #000;
}

.relief {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
  pointer-events: none;
}

.blue-glow {
  position: absolute;
  width: min(60vw, 900px);
  aspect-ratio: 2.2 / 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(62, 95, 183, .22), transparent 70%);
  filter: blur(30px);
}

.login-card {
  position: relative;
  width: min(46vw, 720px);
  min-width: 620px;
  padding: 118px 58px 54px;
  border: 2px solid rgba(255,255,255,.80);
  border-radius: 36px;
  background: rgba(0,0,0,.40);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 28px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.brand-shield {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  width: 168px;
  height: 220px;
  display: grid;
  place-items: center;
}
.brand-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.40));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.login-message {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 110, 110, .58);
  border-radius: 12px;
  background: rgba(145, 25, 25, .28);
  color: #ffd6d6;
  font-size: 15px;
}

.login-form { display: grid; gap: 20px; }
.field-row {
  position: relative;
  height: 74px;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: rgba(0,0,0,.30);
}
.field-icon {
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  background: var(--blue);
}
.field-icon svg {
  width: 36px;
  height: 36px;
  stroke: white;
  stroke-width: 2.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 22px;
  background: transparent;
  color: white;
  font-size: 24px;
}
.field-row input::placeholder { color: rgba(255,255,255,.86); }
.password-row input { padding-right: 72px; }
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.password-toggle svg {
  position: absolute;
  inset: 8px;
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

.form-options {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 8px;
}
.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 18px;
}
.remember-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fake-check {
  width: 27px;
  height: 27px;
  border: 2px solid white;
  display: grid;
  place-items: center;
}
.remember-option input:checked + .fake-check::after {
  content: '✓';
  font-size: 21px;
  line-height: 1;
}

.submit-button {
  height: 75px;
  border: 0;
  border-radius: 17px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 3px 0 rgba(0,0,0,.36);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.12);
}
.submit-button:hover { background: #5a7dbc; }
.login-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.login-symbol svg {
  width: 46px;
  height: 46px;
  stroke: white;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.42));
}

@media (max-width: 760px) {
  .login-card {
    width: calc(100vw - 28px);
    min-width: 0;
    padding: 94px 22px 30px;
    border-radius: 28px;
  }
  .brand-shield {
    top: -76px;
    width: 126px;
    height: 170px;
  }
  .field-row { height: 64px; }
  .field-icon { flex-basis: 64px; }
  .field-row input { font-size: 19px; }
  .submit-button { font-size: 23px; height: 68px; }
}
.forgot-link{color:rgba(255,255,255,.76);font-size:12px;text-decoration:none;transition:color .2s ease}.forgot-link:hover{color:#fff;text-decoration:underline}.form-options{align-items:center;justify-content:space-between;gap:16px}@media(max-width:520px){.form-options{align-items:flex-start;flex-direction:column;gap:12px}}

/* MAYA 3.5 · login móvil */
@media (max-width: 640px) {
  body { min-height: 100dvh; overflow-y: auto; }
  .login-page { min-height: 100dvh; padding: 26px 16px; align-items: center; }
  .relief { width: 150vw; max-width: none; opacity: .42; transform: translate(-50%,-50%) scale(1.08); }
  .login-card { width: min(100%, 410px); padding: 28px 19px 24px; border-radius: 24px; backdrop-filter: blur(18px); }
  .brand-shield { width: 124px; height: 124px; margin-top: -74px; }
  .field-row { min-height: 54px; border-radius: 15px; }
  .form-options { align-items: flex-start; gap: 12px; }
  .submit-button { min-height: 56px; border-radius: 16px; }
}

/* Acceso MAYA · actualización visual 2026 */
body {
  min-height: 100dvh;
  background: #050b17;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.login-page {
  isolation: isolate;
  padding: 42px 20px;
  background:
    radial-gradient(circle at 50% 28%, rgba(73, 123, 237, .22), transparent 34rem),
    linear-gradient(135deg, #050a14 0%, #071426 52%, #0a1c36 100%);
}
.login-page::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  opacity: .35;
  background-image: linear-gradient(rgba(139, 171, 232, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 171, 232, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
.relief {
  z-index: -2;
  inset: auto -15vw -31vh auto;
  width: min(58vw, 820px);
  height: auto;
  opacity: .075;
  filter: saturate(.65) contrast(1.1);
}
.blue-glow {
  z-index: -1;
  width: min(64vw, 920px);
  aspect-ratio: 1.65;
  background: radial-gradient(ellipse, rgba(57, 98, 204, .26), transparent 68%);
  filter: blur(4px);
}
.login-card {
  width: min(100%, 480px);
  min-width: 0;
  padding: 122px 34px 29px;
  border: 1px solid rgba(151, 185, 239, .25);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(17, 42, 80, .9), rgba(8, 25, 52, .78));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
}
.login-card::before {
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(143, 180, 255, .76), transparent);
}
.brand-shield {
  top: -63px;
  width: 98px;
  height: 124px;
  padding: 10px;
  border: 1px solid rgba(154, 187, 243, .32);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(106, 147, 237, .24), rgba(11, 30, 60, .52));
  box-shadow: 0 16px 30px rgba(0, 0, 0, .33);
}
.brand-shield::after {
  position: absolute;
  top: 131px;
  left: 50%;
  width: 260px;
  content: "PAYNAL · MAYA ERP";
  transform: translateX(-50%);
  color: #9ebcff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
}
.login-form { gap: 17px; }
.field-row {
  height: 59px;
  border: 1px solid rgba(149, 184, 239, .28);
  border-radius: 13px;
  background: rgba(3, 15, 35, .43);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-row:focus-within {
  border-color: #6e96ff;
  background: rgba(7, 25, 54, .72);
  box-shadow: 0 0 0 3px rgba(91, 139, 255, .15);
}
.field-icon { flex-basis: 56px; color: #9bbcff; background: transparent; }
.field-icon svg { width: 25px; height: 25px; stroke-width: 2.4; }
.field-row input { padding: 0 16px 0 0; font-size: .97rem; }
.field-row input::placeholder { color: #7187a9; }
.password-row input { padding-right: 54px; }
.password-toggle { right: 8px; width: 42px; height: 42px; border-radius: 10px; color: #9db9ef; transition: color .18s ease, background .18s ease; }
.password-toggle:hover { background: rgba(111, 150, 241, .14); color: #fff; }
.password-toggle svg { inset: 10px; width: 22px; height: 22px; stroke-width: 2.8; }
.form-options { justify-content: space-between; gap: 14px; padding: 0; }
.remember-option { gap: 9px; color: #c6d5ed; font-size: .8rem; }
.fake-check { width: 18px; height: 18px; border: 1px solid #6f8fc7; border-radius: 5px; background: rgba(3, 15, 35, .55); }
.remember-option input:checked + .fake-check { border-color: #79a0ff; background: #4576e8; }
.remember-option input:checked + .fake-check::after { font-size: 13px; }
.forgot-link { color: #9dbdff; font-size: .78rem; font-weight: 650; }
.submit-button {
  height: 59px;
  margin-top: 5px;
  border: 1px solid rgba(138, 173, 255, .62);
  border-radius: 13px;
  background: linear-gradient(135deg, #3268dc, #5487f8);
  box-shadow: 0 12px 24px rgba(29, 73, 174, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
  font: 800 .96rem/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: .025em;
  text-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.submit-button:hover { background: linear-gradient(135deg, #3974ee, #6394ff); transform: translateY(-1px); box-shadow: 0 15px 28px rgba(29, 73, 174, .42), inset 0 1px 0 rgba(255, 255, 255, .24); }
.login-symbol { width: 21px; height: 21px; }
.login-symbol svg { width: 21px; height: 21px; stroke-width: 3.4; filter: none; }
@media (max-width: 640px) {
  .login-page { padding: 24px 14px; align-items: start; }
  .login-card { margin-top: 10vh; padding: 103px 20px 24px; border-radius: 22px; }
  .brand-shield { top: -56px; width: 86px; height: 108px; }
  .brand-shield::after { top: 115px; }
  .field-row { height: 56px; }
  .relief { right: -42vw; bottom: -8vh; width: 100vw; opacity: .06; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
