/* LogiRates, сброс пароля (reset2610, T-051): /password/reset и Forgot password? внутри /login.
   Только дельта пакета reset2610 поверх /html/auth2610.css (подключается после него): шаги email → code → new → done,
   поле кода на 6 ячеек, Resend, экран Password updated, панель с письмом и замком (Components/auth2610/AuCodePiece.vue).
   Переменные --ink/--slate/--accent… — у .au из lr-tokens.css; --line/--ok/--err/--card — из auth2610.css. Шрифт — lr-fonts.css.
   Отличия от пакета: класс пакета motion → lr-motion (на html, ставит скрипт в <head>), правила под .lr-motion .au; въезд шага только по .is-enter (смена шага,
   не первый рендер); полоса пароля — transform: scaleX(var(--meter)); мерцание строк — ::after + translateX; литералы, равные
   токенам, — var(--lr-…). При reduced-motion всё стоит (правило .au * в auth2610.css). Картинок нет: лента — text2610/ribbon.jpg. */

/* ===== Шаги ===== */
.au--reset h1 { margin-bottom: 12px; }
.au-lead { margin-bottom: 28px; font-size: var(--lr-text-lg); font-weight: var(--lr-weight-medium); line-height: 1.5; color: var(--slate); }
.au .nw { white-space: nowrap; }
.au-rs-mail { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: var(--lr-weight-extrabold); color: var(--ink); }
.au h1:focus { outline: 0; }
.lr-motion .au .au-rs-pane.is-enter { animation: au-in .45s var(--ease); }
@keyframes au-in { from { opacity: 0; transform: translateX(14px); } }

/* Полоски шагов: ширина в строке фиксированной высоты, соседей не двигает */
.au-rs-steps { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.au-rs-steps li { width: 28px; height: 4px; border-radius: 4px; background: var(--line); transition: width .45s var(--ease), background-color .45s; }
.au-rs-steps li.is-on { width: 44px; background: linear-gradient(90deg, var(--lr-color-brand-accent-light), var(--orange)); }
.au-rs[data-step="done"] .au-rs-steps li { background: linear-gradient(90deg, #5cc489, var(--ok)); }

/* Back: стрелка влево */
.au-switch--back a .ico { transform: scaleX(-1); }
.au-switch--back a:hover .ico { transform: scaleX(-1) translateX(3px); }

/* Строка «код отправлен» */
.au-note { display: flex; align-items: center; gap: 8px; margin: -12px 0 20px; padding: 10px 14px; border-radius: var(--lr-radius-md); background: #eef8f1; font-size: var(--lr-text-sm-plus); font-weight: var(--lr-weight-bold); line-height: 1.35; color: var(--ok); }
.au-note .ico { flex: none; }
.au-note.is-pop { animation: au-pop .35s var(--ease); }

/* ===== Поле кода: одно поле поверх шести ячеек ===== */
.au-otp { position: relative; display: block; cursor: text; }
.au-otp__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: var(--lr-text-base); letter-spacing: 0; opacity: .01; outline: 0; }
.au-otp__cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.au-otp__cells i { position: relative; display: flex; align-items: center; justify-content: center; height: 64px; border-radius: var(--lr-radius-btn); background: var(--soft-bg); box-shadow: inset 0 0 0 1px transparent; font-style: normal; font-size: 26px; font-weight: var(--lr-weight-extrabold); font-variant-numeric: tabular-nums; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.au-otp__cells i.is-full { background: var(--lr-color-surface-page); box-shadow: inset 0 0 0 1px #dcdde3; animation: au-digit .25s var(--ease); }
.au-otp__cells i.is-cur { background: var(--lr-color-surface-page); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(234, 163, 10, .16); }
.au-otp__cells i.is-cur:not(.is-full)::after { content: ""; width: 2px; height: 26px; border-radius: 2px; background: var(--accent-d); animation: au-caret 1s steps(1) infinite; }
@keyframes au-digit { from { transform: scale(.85); } }
@keyframes au-caret { 50% { opacity: 0; } }
.au-otp:hover .au-otp__cells i:not(.is-cur) { box-shadow: inset 0 0 0 1px #dcdde3; }
.au-otp-field.is-err .au-otp__cells i { background: #fff7f7; box-shadow: inset 0 0 0 1.5px var(--err); color: var(--err); }
.au-otp-field.is-shake .au-otp__cells { animation: au-shake .4s; }

/* Кнопка недоступна до 6 цифр; Log in на done — ссылка */
.au-submit:disabled:not(.is-busy) { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.au-submit:disabled::after { display: none; }
a.au-submit { text-decoration: none; }

/* Resend с таймером */
.au-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: var(--lr-text-md); font-weight: var(--lr-weight-semibold); color: var(--slate); }
.au-link { padding: 0; border: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; font-size: var(--lr-text-md); font-weight: var(--lr-weight-extrabold); color: var(--lr-color-brand-accent-text, #9a6200); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-size .3s var(--ease); }
.au-link:hover { background-size: 100% 1.5px; }
.au-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.au-link:disabled { color: var(--muted); cursor: default; background-size: 0 1.5px; }

/* Password updated */
.au-rs-done__ico { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 20px; background: linear-gradient(135deg, #5cc489, var(--ok)); color: var(--lr-color-text-on-accent); box-shadow: 0 12px 28px rgba(46, 158, 91, .28); }
.lr-motion .au .au-rs-done__ico { animation: au-stamp .55s var(--ease) .1s both; }
@keyframes au-stamp { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
.au-rs-done .au-submit { margin-top: 0; }

/* ===== Панель: письмо с кодом и замок ===== */
.au-code { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 440px; margin: 0 auto; padding: 24px 0; }
.au-mail { padding: 18px 20px 20px; border-radius: var(--lr-radius-card); background: var(--lr-color-surface-page); box-shadow: var(--card); transition: opacity .5s, transform .5s var(--ease); }
.au-mail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.au-mail__head b { font-size: var(--lr-text-lg); font-weight: var(--lr-weight-extrabold); }
.au-mail__wait { display: flex; gap: 4px; transition: opacity .3s; }
.au-mail__wait i { width: 6px; height: 6px; border-radius: var(--lr-radius-round); background: var(--accent); }
.lr-motion .au .au-mail__wait i { animation: au-wait 1.2s ease-in-out infinite; }
.au-mail__wait i:nth-child(2) { animation-delay: .15s; }
.au-mail__wait i:nth-child(3) { animation-delay: .3s; }
@keyframes au-wait { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.au-mail__skel { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--lr-radius-btn); background: var(--soft-bg); }
/* Мерцание: блик ::after едет transform'ом (без перерисовки фона строки) */
.au-mail__skel i { position: relative; overflow: hidden; height: 10px; border-radius: var(--lr-radius-xs); background: #e9eaee; }
.au-mail__skel i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245, 245, 247, 0) 0%, #f5f5f7 50%, rgba(245, 245, 247, 0) 100%); transform: translateX(100%); }
.au-mail__skel i:last-child { width: 60%; }
.lr-motion .au .au-mail__skel i::after { animation: au-shimmer 1.6s linear infinite; }
@keyframes au-shimmer { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.au-mail__msg { display: none; }
.au-mail__row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.au-mail__from { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--lr-radius-md); background: linear-gradient(135deg, var(--lr-color-brand-accent-light), var(--orange)); color: var(--lr-color-text-on-accent); font-size: var(--lr-text-sm); font-weight: var(--lr-weight-extrabold); }
.au-mail__row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.au-mail__row b { font-size: var(--lr-text-sm-plus); font-weight: var(--lr-weight-extrabold); }
.au-mail__row small { font-size: var(--lr-text-sm); font-weight: var(--lr-weight-semibold); color: var(--muted); }
.au-mail__row em { flex: none; font-style: normal; font-size: var(--lr-text-xs); font-weight: var(--lr-weight-bold); color: var(--muted); }
.au-mail__code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.au-mail__code i { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: var(--lr-radius-md); background: var(--soft-bg); font-style: normal; font-size: 24px; font-weight: var(--lr-weight-extrabold); font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.au-mail__code i.is-hit { background: #e4f5ea; color: var(--ok); transform: translateY(-2px); }

.au-code:not(.s-email) .au-mail__wait, .au-code:not(.s-email) .au-mail__skel { display: none; }
.au-code:not(.s-email) .au-mail__msg { display: block; }
.lr-motion .au .au-code.s-code .au-mail__row { animation: au-pop .5s var(--ease); }
.lr-motion .au .au-code.s-code .au-mail__code i { animation: au-digit-in .4s var(--ease) both; animation-delay: calc(.3s + var(--i) * 90ms); }
@keyframes au-digit-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.au-code.s-new .au-mail, .au-code.s-done .au-mail { opacity: .55; transform: scale(.97); }

.au-lockcard { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--lr-radius-card); background: var(--lr-color-surface-page); box-shadow: var(--card); transition: opacity .5s, transform .5s var(--ease), box-shadow .5s; }
.au-code.s-email .au-lockcard, .au-code.s-code .au-lockcard { opacity: .6; transform: scale(.97); }
.au-code.s-new .au-lockcard { box-shadow: inset 0 0 0 1.5px rgba(234, 163, 10, .55), 0 18px 40px rgba(234, 163, 10, .18); }
.au-lock { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--lr-radius-xl); background: linear-gradient(135deg, var(--lr-color-brand-accent-light), var(--orange)); color: var(--lr-color-text-on-accent); transition: background-color .4s; }
.au-lock svg { overflow: visible; }
.au-lock__arc { transform-box: view-box; transform-origin: 33px 21px; transition: transform .6s var(--ease); }
.au-code.s-done .au-lock { background: linear-gradient(135deg, #5cc489, var(--ok)); }
.au-code.s-done .au-lock__arc { transform: translateY(-5px) rotate(28deg); }
.au-lockcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.au-dots { display: flex; gap: 6px; }
.au-dots i { width: 10px; height: 10px; border-radius: var(--lr-radius-round); background: #e3e4ea; transition: background-color .2s, transform .25s var(--ease); }
.au-dots i.is-on { background: var(--ink); transform: scale(1.15); }
/* Полоса до 8 символов: доля в --meter (0…1) на .au-code, рисуется scaleX без пересчёта раскладки */
.au-meter { display: block; height: 6px; border-radius: var(--lr-radius-xs); background: #f0f0f3; overflow: hidden; }
.au-meter i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lr-color-brand-accent-light), var(--orange)); transform: scaleX(var(--meter, 0)); transform-origin: left center; transition: transform .35s var(--ease); }
.au-code.is-strong .au-meter i, .au-code.s-done .au-meter i { transform: none; background: linear-gradient(90deg, #5cc489, var(--ok)); }
.au-code.s-done .au-dots i { background: var(--ok); transform: scale(1.15); }
.au-lockcard__ok { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--ease); }
.au-code.is-strong .au-lockcard__ok, .au-code.s-done .au-lockcard__ok { opacity: 1; transform: none; }

/* ===== Переломы ===== */
@media (max-width: 980px) {
  .au-lead { margin-bottom: 24px; font-size: var(--lr-text-base); }
  .au-code { padding: 8px 0; }
}
@media (max-width: 560px) {
  .au-otp__cells { gap: 8px; }
  .au-otp__cells i { height: 56px; border-radius: var(--lr-radius-md); font-size: 24px; }
  .au-mail { padding: 14px; }
  .au-mail__code { gap: 6px; }
  .au-mail__code i { height: 44px; font-size: 20px; }
  .au-lockcard { padding: 14px; gap: 12px; }
  .au-lock { width: 52px; height: 52px; border-radius: 15px; }
  .au-lock svg { width: 46px; height: 46px; }
  .au-dots { gap: 5px; }
  .au-dots i { width: 8px; height: 8px; }
}
