.page-login {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.login-topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.login-topbar nav {
  display: flex;
  gap: 2rem;
}

.login-brand {
  font-weight: 700;
}

.login-hero {
  background: linear-gradient(135deg, #eef3ff 0%, #dde8ff 100%);
  padding: 4rem;
}

.login-hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.login-hero p {
  color: var(--color-text-soft);
  font-size: 1.15rem;
  max-width: 560px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #f8fbff;
}

.login-box {
  width: 100%;
  max-width: 440px;
}

.login-panel-title {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.login-panel-copy {
  margin-top: 0;
  margin-bottom: 1.2rem;
  line-height: 1.42;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.login-field {
  margin-bottom: 0;
}

.login-field label {
  display: inline-block;
  margin-bottom: 0.46rem;
  font-weight: 700;
  color: #1d2d48;
}

.login-field .app-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field .app-input:focus {
  border-color: #2c63d6;
  box-shadow: 0 0 0 3px rgba(44, 99, 214, 0.15);
  background: #ffffff;
}

.login-secondary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.15rem;
}

.login-forgot-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2557c7;
}

.login-forgot-link:hover,
.login-forgot-link:focus {
  color: #1a43a6;
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  margin-top: 0.1rem;
}

.login-mini-card {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
}

.login-message-card p {
  margin: 0;
}

.login-message-copy {
  margin-top: 0.35rem !important;
  font-size: 1rem !important;
}

.login-message-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.login-status-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.login-status-chips span {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #21406f;
  background: #eef4ff;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
}

.login-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #165839;
  background: #e9f9f1;
  border: 1px solid #bfe9d2;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  white-space: nowrap;
}

.login-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12a150;
  display: inline-block;
  animation: pulseDot 1.7s ease-in-out infinite;
}

.login-flow {
  position: relative;
  margin: 0.95rem auto 0;
  width: 100%;
  max-width: 640px;
  height: 200px;
  border-radius: 12px;
  background:
    radial-gradient(140px 100px at 15% 82%, rgba(41, 134, 255, 0.16), transparent 70%),
    radial-gradient(130px 90px at 88% 20%, rgba(57, 172, 255, 0.16), transparent 70%),
    linear-gradient(135deg, #f6f9ff 0%, #edf4ff 100%);
  border: 1px solid #d8e5fb;
  overflow: hidden;
}

.flow-plane {
  --plane-size: 78px;
  position: absolute;
  top: 62px;
  left: 0;
  color: #4f4a43;
  animation: planeTravel 4.8s linear infinite;
  will-change: left, transform;
  transform-origin: center center;
  z-index: 2;
}

.flow-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
}

.flow-bg-orb-a {
  width: 90px;
  height: 90px;
  left: 16px;
  bottom: 12px;
  background: rgba(31, 137, 255, 0.18);
  animation: orbFloatA 3.8s ease-in-out infinite;
}

.flow-bg-orb-b {
  width: 78px;
  height: 78px;
  right: 22px;
  top: 10px;
  background: rgba(99, 190, 255, 0.2);
  animation: orbFloatB 4.2s ease-in-out infinite;
}

.flow-plane-image {
  width: var(--plane-size);
  height: var(--plane-size);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(25, 118, 210, 0.24));
}

.flow-plane-badges {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: calc(100vw - 3rem);
  z-index: 2;
  pointer-events: none;
}

.flow-plane-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #c0cfe9;
  border-radius: 999px;
  background: #f8fbff;
  color: #19315b;
  padding: 0.32rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  box-shadow: 0 3px 9px rgba(17, 36, 68, 0.12);
  flex: 0 0 auto;
}

.flow-plane-badge-svg {
  width: 14px;
  height: 14px;
}

.flow-plane-badge-sms {
  animation: badgeReveal 4.8s ease-in-out infinite;
}

.flow-plane-badge-email {
  animation: badgeReveal 4.8s ease-in-out infinite;
  animation-delay: 0.65s;
}

.flow-plane-badge-ivr {
  animation: badgeReveal 4.8s ease-in-out infinite;
  animation-delay: 1.3s;
}

.flow-timeline {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 1;
}

.flow-timeline span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2a456f;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d3dff3;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  animation: timelineBlink 2.2s ease-in-out infinite;
}

.flow-timeline span:nth-child(2) {
  animation-delay: 0.35s;
}

.flow-timeline span:nth-child(3) {
  animation-delay: 0.7s;
}

.login-metric-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.login-metric-grid article {
  border: 1px solid #d6e2f7;
  border-radius: 10px;
  background: rgba(249, 252, 255, 0.95);
  padding: 0.5rem 0.58rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.login-metric-grid strong {
  color: #12325d;
  font-size: 0.82rem;
  line-height: 1.2;
}

.login-metric-grid span {
  color: #506b92;
  font-size: 0.72rem;
  line-height: 1.15;
}

/* left: % se calcula sobre .login-flow (ancho completo), no sobre el avión */
@keyframes planeTravel {
  0% {
    left: 0;
    transform: rotate(-9deg) translateY(0);
    opacity: 0.92;
  }
  50% {
    transform: rotate(2deg) translateY(-4px);
  }
  100% {
    left: calc(100% - var(--plane-size));
    transform: rotate(5deg) translateY(0);
    opacity: 1;
  }
}

@keyframes badgeReveal {
  0%, 12% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  20%, 62% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  74%, 100% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes timelineBlink {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes orbFloatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes orbFloatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.login-footer {
  height: 68px;
  border-top: 1px solid var(--color-border);
  background: #f3f6fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.public-page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-page-main {
  flex: 1;
  width: 100%;
}

.survey-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.survey-steps {
  text-align: center;
  margin-top: 1.5rem;
}

.survey-question {
  margin-bottom: 1.5rem;
}

.survey-question p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .login-topbar nav {
    display: none;
  }

  .page-login {
    grid-template-columns: 1fr;
  }

  .login-hero {
    padding: 2rem 1.25rem 1.5rem;
  }

  .login-hero h1 {
    font-size: 2rem;
  }

  .login-panel {
    padding: 1.2rem;
  }

  .login-box {
    max-width: 520px;
  }

  .login-panel-title {
    font-size: 1.7rem;
  }

  .login-panel-copy {
    margin-bottom: 1rem;
  }

  .login-flow {
    max-width: 100%;
    height: 190px;
  }

  .flow-plane {
    --plane-size: 62px;
    top: 58px;
    left: 0;
  }

  .flow-plane-badges {
    gap: 0.35rem;
    max-width: min(100%, 250px);
    flex-wrap: wrap;
    justify-content: center;
  }

  .flow-plane-badge {
    font-size: 0.66rem;
    padding: 0.26rem 0.5rem;
  }

  .flow-timeline {
    bottom: 8px;
    gap: 0.28rem;
  }

  .flow-timeline span {
    font-size: 0.62rem;
    padding: 0.14rem 0.36rem;
  }

  .login-metric-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .login-message-top {
    flex-wrap: wrap;
  }

  .login-footer {
    height: auto;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    text-align: center;
  }
}
