* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --azul:      #2F5496;
  --azul-osc:  #0a1f38;
  --amarillo:  #FACC15;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--azul-osc);
  color: #0f2744;
}

.shell { display: flex; min-height: 100vh; min-height: 100dvh; width: 100%; }

.left {
  position: relative;
  width: 55%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px;
  background: radial-gradient(130% 130% at 0% 0%, #2F5496 0%, #16335a 45%, #0a1f38 100%);
  --mx: 0;
  --my: 0;
}

.aurora {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.45;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(96,165,250,0.5) 70deg, transparent 150deg, rgba(250,204,21,0.35) 230deg, transparent 320deg);
  filter: blur(60px);
  animation: spinSlow 26s linear infinite;
}

.par {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.par.b1 { transform: translate(calc(var(--mx) * 34px),  calc(var(--my) * 34px)); }
.par.b2 { transform: translate(calc(var(--mx) * -50px), calc(var(--my) * -50px)); }
.par.b3 { transform: translate(calc(var(--mx) * 22px),  calc(var(--my) * -28px)); }
.par.hx { transform: translate(calc(var(--mx) * 60px),  calc(var(--my) * 60px)); }
.par.tools { transform: translate(calc(var(--mx) * 48px), calc(var(--my) * 42px)); }

.blob { position: absolute; border-radius: 50%; }
.blob.a { top: -130px; right: -90px;  width: 480px; height: 480px; filter: blur(30px); background: radial-gradient(circle, rgba(96,165,250,0.5), transparent 70%);  animation: blobA 17s ease-in-out infinite; }
.blob.b { bottom: -150px; left: -120px; width: 440px; height: 440px; filter: blur(34px); background: radial-gradient(circle, rgba(250,204,21,0.26), transparent 70%); animation: blobB 21s ease-in-out infinite; }
.blob.c { top: 34%; left: 42%;        width: 320px; height: 320px; filter: blur(28px); background: radial-gradient(circle, rgba(47,84,150,0.6), transparent 70%);   animation: blobC 14s ease-in-out infinite; }

.hex { position: absolute; }
.hex.h1 { top: 62px;  right: 96px;  width: 78px; height: 78px; opacity: 0.55; animation: hexFloat 9s ease-in-out infinite; }
.hex.h2 { bottom: 110px; right: 150px; width: 48px; height: 48px; opacity: 0.45; animation: hexFloat 11s ease-in-out infinite 1s; }

.spark { position: absolute; border-radius: 50%; }
.spark.s1 { top: 140px; left: 90px;  width: 10px; height: 10px; background: var(--amarillo); animation: sparkle 4s   ease-in-out infinite; }
.spark.s2 { bottom: 180px; left: 150px; width: 8px;  height: 8px;  background: #fff;          animation: sparkle 5s   ease-in-out infinite 1.4s; }
.spark.s3 { top: 46%; right: 120px;  width: 7px;  height: 7px;  background: #60a5fa;       animation: sparkle 4.6s ease-in-out infinite 0.6s; }

.tool-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}
.tool-icon i {
  display: block;
  line-height: 1;
}

.tool-icon.t1 { top: 22%;  left: 7%;   font-size: 42px; color: rgba(250,204,21,0.78);  opacity: 0.7; animation: iconFloat 11s ease-in-out infinite; }
.tool-icon.t2 { bottom: 14%; left: 10%; font-size: 38px; color: rgba(255,255,255,0.72); opacity: 0.65; animation: iconFloat 9s ease-in-out infinite 0.8s; }
.tool-icon.t3 { top: 12%;  left: 28%; font-size: 46px; color: rgba(96,165,250,0.8);   opacity: 0.6; animation: iconFloat 13s ease-in-out infinite 1.2s; }
.tool-icon.t4 { bottom: 22%; right: 12%; font-size: 40px; color: rgba(250,204,21,0.7);  opacity: 0.62; animation: iconFloat 10s ease-in-out infinite 0.4s; }
.tool-icon.t5 { top: 52%;  left: 5%;  font-size: 34px; color: rgba(255,255,255,0.68); opacity: 0.58; animation: iconFloat 12s ease-in-out infinite 1.6s; }
.tool-icon.t6 { top: 8%;   right: 22%; font-size: 44px; color: rgba(255,255,255,0.6);  opacity: 0.55; animation: iconFloat 14s ease-in-out infinite 0.2s; }
.tool-icon.t7 { bottom: 8%;  left: 32%; font-size: 36px; color: rgba(96,165,250,0.75);  opacity: 0.6; animation: iconFloat 11s ease-in-out infinite 2s; }
.tool-icon.t8 { top: 38%;  right: 6%;  font-size: 32px; color: rgba(250,204,21,0.65); opacity: 0.55; animation: iconFloat 9.5s ease-in-out infinite 1s; }
.tool-icon.t9 { top: 68%;  right: 24%; font-size: 40px; color: rgba(255,255,255,0.62); opacity: 0.52; animation: iconFloat 12.5s ease-in-out infinite 0.6s; }
.tool-icon.t10 { bottom: 38%; left: 22%; font-size: 30px; color: rgba(96,165,250,0.7); opacity: 0.5; animation: iconFloat 10.5s ease-in-out infinite 1.8s; }

.marca {
  position: absolute;
  top: 56px;
  left: 64px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}
.marca-bar { width: 14px; height: 38px; border-radius: 4px; background: var(--amarillo); }
.marca span { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: 0.32em; font-size: 13px; color: rgba(255,255,255,0.88); }

.logo-wrap {
  position: relative;
  z-index: 3;
  opacity: 0;
  line-height: 0;
  animation: fadeIn 0.9s ease-out 0.12s forwards;
  transform: translate(calc(var(--mx) * -32px), calc(var(--my) * -32px));
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.logo-float {
  animation: logoFloat 8s ease-in-out infinite;
  will-change: transform;
}
.logo-main {
  display: block;
  width: min(560px, 82vw);
  height: auto;
  border: 0;
  outline: none;
  box-shadow: none;
  mix-blend-mode: lighten;
  clip-path: inset(3px 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.right {
  position: relative;
  width: 45%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23facc15' fill-opacity='0.50'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.right-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(47,84,150,0.1), transparent 70%);
}

.card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 40px 80px -30px rgba(15,39,68,0.35), 0 4px 14px -6px rgba(15,39,68,0.12);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.18s forwards;
}
.accent-bar {
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #2F5496, #60a5fa, var(--amarillo), #2F5496);
  background-size: 200% 100%;
  animation: accentSlide 5s linear infinite;
}
.card-logo { display: block; width: 78px; height: auto; margin-bottom: 22px; }
.card h2 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 33px; line-height: 1.08; margin: 0; color: #0f2744; letter-spacing: -0.02em; }
.card .sub { font-size: 15px; color: #64748b; margin: 10px 0 0; }

form { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.flash-messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.flash {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.flash-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.flash-success,
.flash-info {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.field { opacity: 0; }
.field.f1 { animation: fadeUp 0.7s ease-out 0.3s forwards; }
.field.f2 { animation: fadeUp 0.7s ease-out 0.4s forwards; }

.field label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 9px; letter-spacing: 0.01em; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.label-row label { margin: 0; }
.forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--azul);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.forgot:hover { text-decoration: underline; }

.input-wrap { position: relative; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; color: #94a3b8; }
.input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  color: #0f2744;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.input-wrap input.has-toggle { padding-right: 50px; }
.input-wrap input::placeholder { color: #94a3b8; }
.input-wrap input:focus { border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(47,84,150,0.12); }

.toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}
.toggle-pass:hover { background: #f1f5f9; }
.toggle-pass .icon-hide { display: none; }
.toggle-pass.is-shown .icon-show { display: none; }
.toggle-pass.is-shown .icon-hide { display: flex; }

.btn {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #2F5496 0%, #1a365d 60%, #2F5496 100%);
  background-size: 180% 100%;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 16px 32px -12px rgba(47,84,150,0.75);
  opacity: 0;
  animation: fadeUp 0.7s ease-out 0.5s forwards;
  transition: transform 0.18s, box-shadow 0.18s, background-position 0.5s;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 22px 40px -12px rgba(47,84,150,0.85); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: default; opacity: 0.85; }
.btn .sheen { position: absolute; top: 0; left: 0; width: 60%; height: 100%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: sheen 3.2s ease-in-out infinite; }
.btn .accent-line { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--amarillo); }
.btn span, .btn svg { position: relative; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }

.btn .state-loading { display: none; align-items: center; gap: 10px; }
.btn.is-loading .state-default { display: none; }
.btn.is-loading .state-loading { display: flex; }
.state-default { display: flex; align-items: center; gap: 10px; }

.footer { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 12px; color: #94a3b8; letter-spacing: 0.04em; }

.forgot-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.forgot-modal.modal-closed {
  pointer-events: none;
  visibility: hidden;
}
.forgot-modal.modal-open {
  pointer-events: auto;
  visibility: visible;
}
.forgot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 56, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.forgot-modal.modal-open .forgot-modal__backdrop { opacity: 1; }
.forgot-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 24px;
  padding: 44px 32px 28px;
  box-shadow: 0 32px 64px -24px rgba(15, 39, 68, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.forgot-modal.modal-open .forgot-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.forgot-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.forgot-modal__close:hover {
  background: #f1f5f9;
  color: #0f2744;
}
.forgot-modal__icon {
  width: 60px;
  height: 60px;
  margin: 4px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
  font-size: 30px;
  flex-shrink: 0;
}
.forgot-modal__icon i {
  display: block;
  line-height: 1;
  transform: translateX(1px);
}
.forgot-modal__title {
  margin: 0;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f2744;
  letter-spacing: -0.02em;
}
.forgot-modal__text {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
.forgot-modal__text strong { color: #0f2744; }
.forgot-modal__hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}
.forgot-modal__field {
  margin-top: 22px;
}
.forgot-modal__field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}
.forgot-modal__field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  color: #0f2744;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.forgot-modal__field input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(47, 84, 150, 0.12);
}
.forgot-modal__field input.forgot-modal__input--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.forgot-modal__error {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.forgot-modal__error.hidden { display: none; }
.forgot-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.forgot-modal__btn {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.forgot-modal__btn .fa-whatsapp {
  flex-shrink: 0;
  font-size: 17px;
}
.forgot-modal__btn--ghost {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
}
.forgot-modal__btn--ghost:hover { background: #f8fafc; }
.forgot-modal__btn--primary {
  border: none;
  background: linear-gradient(120deg, #2F5496 0%, #1a365d 100%);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(47, 84, 150, 0.7);
}
.forgot-modal__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -10px rgba(47, 84, 150, 0.8);
}
.forgot-modal__btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}
.forgot-modal__btn .state-loading { display: none; align-items: center; gap: 8px; }
.forgot-modal__btn.is-loading .state-default { display: none; }
.forgot-modal__btn.is-loading .state-loading { display: inline-flex; }
.forgot-modal__btn .state-default { display: inline-flex; align-items: center; gap: 8px; }
.forgot-modal__btn--full { width: 100%; margin-top: 8px; }
.forgot-modal .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.forgot-modal__success.hidden { display: none; }
.forgot-modal__success { text-align: center; }
.forgot-modal__success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 26px;
}
.forgot-modal__success-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
#forgotModalForm.hidden { display: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  35% { transform: translateY(-16px) rotate(-1.2deg) scale(1.025); }
  70% { transform: translateY(-8px) rotate(1deg) scale(1.012); }
}
@keyframes blobA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-40px) scale(1.15); } }
@keyframes blobB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,50px) scale(1.2); } }
@keyframes blobC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,60px) scale(0.88); } }
@keyframes spinSlow { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes hexFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(22deg); } }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-18px) rotate(-12deg); }
  70% { transform: translateY(-10px) rotate(10deg); }
}
@keyframes sheen { 0% { transform: translateX(-160%) skewX(-18deg); } 55%,100% { transform: translateX(280%) skewX(-18deg); } }
@keyframes sparkle { 0%,100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 0.9; transform: scale(1.25); } }
@keyframes accentSlide { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {
  .shell {
    flex-direction: column;
  }

  .left {
    width: 100%;
    min-height: 0;
    height: clamp(260px, 38vh, 360px);
    padding: 28px 24px;
  }

  .marca {
    top: 22px;
    left: 22px;
    gap: 10px;
  }

  .marca-bar {
    width: 11px;
    height: 30px;
  }

  .marca span {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .logo-main {
    width: min(300px, 68vw);
  }

  .hex,
  .spark {
    display: none;
  }

  .tool-icon.t4,
  .tool-icon.t5,
  .tool-icon.t6,
  .tool-icon.t7,
  .tool-icon.t8,
  .tool-icon.t9,
  .tool-icon.t10 {
    display: none;
  }

  .tool-icon.t1 { top: 18%; left: 6%; font-size: 34px; }
  .tool-icon.t2 { bottom: 16%; left: 8%; font-size: 30px; }
  .tool-icon.t3 { top: 14%; right: 8%; left: auto; font-size: 32px; }

  .blob.a { width: 300px; height: 300px; top: -80px; right: -60px; }
  .blob.b { width: 260px; height: 260px; bottom: -90px; left: -70px; }
  .blob.c { width: 200px; height: 200px; }

  .aurora {
    opacity: 0.32;
    filter: blur(48px);
  }

  .right {
    width: 100%;
    flex: 1;
    min-height: auto;
    padding: 28px 24px 32px;
    justify-content: flex-start;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .right-glow {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -80px;
  }

  .card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 28px;
    border-radius: 24px;
  }

  .accent-bar {
    left: 28px;
    right: 28px;
  }

  .card-logo {
    width: 68px;
    margin-bottom: 18px;
  }

  .card h2 {
    font-size: 28px;
  }

  .card .sub {
    font-size: 14px;
  }

  form {
    margin-top: 28px;
    gap: 18px;
  }

  .input-wrap input {
    font-size: 16px;
  }

  .footer {
    position: static;
    margin-top: auto;
    padding-top: 24px;
  }
}

/* ── Móvil (≤375px) ── */
@media (max-width: 375px) {
  .left {
    height: clamp(220px, 34vh, 280px);
    padding: 18px 16px;
  }

  .marca {
    top: 16px;
    left: 16px;
    gap: 8px;
  }

  .marca-bar {
    width: 9px;
    height: 24px;
  }

  .marca span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .logo-main {
    width: min(240px, 82vw);
  }

  .tool-icon.t2,
  .tool-icon.t3 {
    display: none;
  }

  .tool-icon.t1 {
    top: 20%;
    left: 8%;
    font-size: 28px;
    opacity: 0.55;
  }

  .right {
    padding: 20px 16px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .card {
    padding: 26px 20px;
    border-radius: 20px;
    box-shadow: 0 24px 48px -24px rgba(15, 39, 68, 0.28), 0 4px 12px -6px rgba(15, 39, 68, 0.1);
  }

  .accent-bar {
    left: 20px;
    right: 20px;
    height: 3px;
  }

  .card-logo {
    width: 56px;
    margin-bottom: 14px;
  }

  .card h2 {
    font-size: 24px;
  }

  .card .sub {
    font-size: 13px;
    margin-top: 8px;
  }

  form {
    margin-top: 22px;
    gap: 14px;
  }

  .field label {
    font-size: 12px;
    margin-bottom: 7px;
  }

  .input-wrap input {
    padding: 12px 14px 12px 42px;
    border-radius: 12px;
  }

  .input-wrap input.has-toggle {
    padding-right: 46px;
  }

  .toggle-pass {
    width: 34px;
    height: 34px;
  }

  .btn {
    height: 50px;
    font-size: 15px;
    border-radius: 14px;
    margin-top: 4px;
  }

  .flash {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 12px;
  }

  .footer {
    font-size: 11px;
    padding-top: 18px;
    letter-spacing: 0.03em;
  }
}

/* ── Móvil horizontal ── */
@media (max-width: 768px) and (max-height: 520px) and (orientation: landscape) {
  .shell {
    flex-direction: row;
  }

  .left {
    width: 42%;
    height: auto;
    min-height: 100dvh;
  }

  .logo-main {
    width: min(200px, 36vw);
  }

  .marca {
    top: 14px;
    left: 14px;
  }

  .right {
    width: 58%;
    padding: 16px 20px;
    overflow-y: auto;
  }

  .card {
    padding: 22px 20px;
  }

  .card h2 {
    font-size: 22px;
  }

  form {
    margin-top: 16px;
    gap: 12px;
  }

  .footer {
    padding-top: 12px;
  .tool-icon.t10 { display: none; }

  .forgot-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .forgot-modal__panel {
    border-radius: 22px 22px 0 0;
    padding: 36px 24px 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .forgot-modal__actions {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap { transition: none; }
  .logo-float { animation: none; }
  .tool-icon { animation: none; }
}
