/* Login: un único rectángulo con el formulario como protagonista y el lado visual integrado */
.login-page { background: var(--page); padding: 20px; display: flex; min-height: 100vh; }
.login-shell {
  position: relative; flex: 1; display: flex; flex-wrap: wrap; overflow: hidden;
  min-height: calc(100vh - 40px); border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(55% 60% at 78% 8%, rgba(67, 191, 253, .14), rgba(67, 191, 253, 0) 70%),
    radial-gradient(45% 50% at 70% 100%, rgba(135, 70, 241, .10), rgba(135, 70, 241, 0) 70%),
    var(--card);
}

.login-form { position: relative; z-index: 1; flex: 0 1 560px; min-width: min(100%, 420px); padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 32px; }
.login-form__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-form__tools { flex: none; display: flex; align-items: center; gap: 8px; }
.login-form__tools .theme-toggle { width: 74px; height: 40px; }
.login-form__tools .theme-toggle__knob { width: 32px; height: 32px; top: 3px; left: 3px; }
.login-form .lang-group { background: var(--field); }
.login-form .lang-group .seg__btn { width: 46px; height: 32px; }

.login-form__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.login-step { display: flex; flex-direction: column; gap: 26px; }
.login-title { font-size: clamp(38px, 3.6vw, 52px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
.hl { color: var(--primary-text); white-space: nowrap; }
.login-sub { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 420px; }

/* Lado visual */
.login-visual { position: relative; flex: 1 1 520px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 56px 48px; }
.login-visual__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(var(--ink), .03) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ink), .03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
}
.login-visual__head { position: relative; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: 560px; }
.login-visual__kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-text); }
.login-visual__hero { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; color: var(--text-2); }
.float-stage { position: relative; width: 100%; max-width: 540px; height: 430px; }
.float-card {
  position: absolute; padding: 16px 18px; border-radius: 20px;
  background: rgba(var(--surface-rgb), .92); border: 1px solid rgba(var(--ink), .1);
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.float-card__quote { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.float-card__meta { margin-top: 12px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.float-chip {
  position: absolute; left: 50%; top: 206px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(var(--surface-rgb), .92); border: 1px solid rgba(var(--ink), .1); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.bar { margin-top: 8px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; animation: grow 1.6s var(--ease) .4s both; }
.fa { animation: floatA 7s ease-in-out infinite; }
.fb { animation: floatB 8s ease-in-out infinite; }
.fc { animation: floatA 9s ease-in-out infinite 1s; }
.fd { animation: floatB 7.5s ease-in-out infinite .5s; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; }

@media (max-width: 860px) {
  .login-visual { display: none; }
  .login-page { padding: 0; }
  .login-shell { border-radius: 0; border: 0; min-height: 100vh; }
  .login-form { flex: 1 1 100%; min-width: 0; }
}
