/* ═══ Login dividido ═══ */
.login-body { background: var(--surface); }
.login { flex: 1; display: flex; min-height: 100vh; }

.login-story {
  position: relative; overflow: hidden;
  flex: 1 1 55%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(32px, 6vw, 96px);
  background: var(--surface-2);
}
[data-theme="dark"] .login-story { background: #171C25; }
.login-brand { height: 30px; width: auto; align-self: flex-start; object-fit: contain; margin-bottom: 56px; }
.login-headline {
  font-size: clamp(34px, 4vw, 52px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em;
  color: var(--navy); max-width: 14ch; margin-bottom: 20px;
}
.login-lead { font-size: 16px; line-height: 26px; color: var(--text-2); max-width: 46ch; margin-bottom: 36px; }

.login-benefits { list-style: none; display: flex; flex-direction: column; gap: 18px; max-width: 460px; position: relative; z-index: 1; }
.login-benefits li { display: flex; align-items: flex-start; gap: 14px; }
.login-benefits li > span:last-child { display: flex; flex-direction: column; }
.login-benefits strong { font-weight: 600; color: var(--navy); }
.login-benefits li > span:last-child > span { font-size: 14px; color: var(--text-2); }
.benefit-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-3); box-shadow: var(--shadow-rest);
}

/* Collage de logos reales: tarjetas suaves que flotan a la derecha */
.login-collage {
  position: absolute; right: -40px; bottom: -40px;
  display: grid; grid-template-columns: repeat(4, 84px); gap: 16px;
  transform: rotate(-8deg);
  opacity: .9;
}
.collage-tile {
  width: 84px; height: 84px; border-radius: 22px; padding: 16px;
  background: var(--surface); box-shadow: 0 4px 14px rgba(19, 35, 63, .06);
  display: flex; align-items: center; justify-content: center;
  animation: floatIn .8s cubic-bezier(.2, .8, .2, 1) both;
}
.collage-tile:nth-child(3n) { opacity: .55; }
.collage-tile:nth-child(4n+1) { opacity: .75; }
.collage-tile:nth-child(odd) { animation-delay: .1s; }
.collage-tile:nth-child(3n+2) { animation-delay: .2s; }
.collage-tile img { width: 100%; height: 100%; object-fit: contain; }
[data-theme="dark"] .collage-tile { background: #F4F6F9; }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px); } }

.login-panel {
  flex: 1 1 45%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px 24px;
}
.login-card { width: 100%; max-width: 380px; margin: auto 0; }
.login-app-mark {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--navy);
}
.login-app-mark svg { width: 24px; height: 24px; }
.login-title { font-size: 26px; line-height: 34px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.login-sub { color: var(--text-2); margin-bottom: 28px; }
.login-hint { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 12px; }
.login-foot { font-size: 12px; color: var(--text-2); margin-top: 32px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 20px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 13px; line-height: 20px; color: var(--text-3);
}
.notice svg { margin-top: 1px; color: var(--text-2); }

.ms-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 18px; height: 18px; }
.ms-logo span:nth-child(1) { background: #F25022; }
.ms-logo span:nth-child(2) { background: #7FBA00; }
.ms-logo span:nth-child(3) { background: #00A4EF; }
.ms-logo span:nth-child(4) { background: #FFB900; }

.divider-label { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; font-size: 12px; color: var(--text-2); }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 900px) {
  .login { flex-direction: column; min-height: 0; }
  .login-story { flex: none; padding: 32px 24px 40px; }
  .login-brand { margin-bottom: 32px; height: 26px; }
  .login-lead { margin-bottom: 0; }
  .login-benefits, .login-collage { display: none; }
  .login-panel { flex: 1; padding: 32px 16px 24px; justify-content: flex-start; }
}
