/* SrepPortal — публичные страницы: главная (welcome), вход, регистрация, подтверждение QR */
:root {
  --au-bg: #0e0d17; --au-card: rgba(24, 22, 38, .88); --au-card-2: #1b1930; --au-line: rgba(255,255,255,.09);
  --au-text: #f2f1fb; --au-muted: #a29fc2; --au-accent: #7c6cff; --au-accent-2: #a45cff; --au-danger: #ff5d6c; --au-ok: #3ddc97;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.au-body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--au-bg); color: var(--au-text);
  font-family: 'Onest', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; overflow-x: hidden; }
.au-body.au-lock { overflow: hidden; }
.au-body a { color: #a99fff; text-decoration: none; }
.au-body a:hover { text-decoration: underline; }
.au-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.au-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.au-orb-1 { width: 520px; height: 520px; background: #4b3bd6; top: -160px; left: -120px; }
.au-orb-2 { width: 460px; height: 460px; background: #8a2be2; bottom: -180px; right: -100px; opacity: .38; }
.au-orb-3 { width: 320px; height: 320px; background: #1f8bff; top: 40%; left: 55%; opacity: .18; }

.au-center { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.au-card { width: 100%; background: var(--au-card); border: 1px solid var(--au-line); border-radius: 26px; padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.au-card-narrow { max-width: 440px; }
.au-card-mid { max-width: 500px; }
.au-card-wide { max-width: 940px; padding: 36px; }
.au-card h1 { margin: 6px 0 6px; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.au-card h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.01em; }
.au-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--au-text) !important; margin-bottom: 14px; }
.au-logo img { width: 36px; height: 36px; border-radius: 10px; }
.au-logo:hover { text-decoration: none !important; }
.au-muted { color: var(--au-muted); margin: 0 0 18px; }
.au-error { background: rgba(255,93,108,.12); border: 1px solid rgba(255,93,108,.4); color: #ffb3bb; padding: 11px 14px; border-radius: 12px; margin: 0 0 14px; font-weight: 600; font-size: 14.5px; }

/* формы */
.au-form { display: flex; flex-direction: column; gap: 14px; }
.au-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--au-muted); }
.au-form input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--au-line); background: #131226; color: var(--au-text);
  font: inherit; font-size: 16px; font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s; }
.au-form input::placeholder { color: #6d6a8e; }
.au-form input:focus { border-color: var(--au-accent); box-shadow: 0 0 0 4px rgba(124,108,255,.18); }
.au-code-input { text-align: center; letter-spacing: .5em; font-size: 24px !important; font-weight: 800 !important; }
.au-pass { position: relative; display: block; }
.au-pass input { padding-right: 52px; }
.au-pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 17px; opacity: .7; }
.au-pass-toggle:hover { opacity: 1; background: rgba(255,255,255,.06); }
.au-hint { min-height: 16px; font-weight: 600; font-size: 12.5px; color: var(--au-muted); }
.au-hint.is-bad { color: var(--au-danger); } .au-hint.is-ok { color: var(--au-ok); }

/* кнопки */
.au-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.au-btn:active { transform: translateY(1px); }
.au-btn:disabled { opacity: .6; cursor: default; }
.au-btn-primary { color: #fff !important; background: linear-gradient(120deg, var(--au-accent), var(--au-accent-2)); box-shadow: 0 10px 26px rgba(124,108,255,.35); }
.au-btn-primary:hover { box-shadow: 0 12px 30px rgba(124,108,255,.5); }
.au-btn-ghost { color: var(--au-text) !important; background: rgba(255,255,255,.05); border-color: var(--au-line); }
.au-btn-ghost:hover { background: rgba(255,255,255,.1); }
.au-btn-vk { width: 100%; color: #fff !important; background: #0077ff; box-shadow: 0 10px 24px rgba(0,119,255,.28); }
.au-btn-vk:hover { background: #1a85ff; }
.au-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.au-btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; border-radius: 16px; }
.au-form .au-btn { width: 100%; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--au-muted); font-size: 13px; font-weight: 600; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--au-line); }
.au-switch { margin: 18px 0 0; text-align: center; color: var(--au-muted); font-size: 14.5px; }

/* вход: две колонки */
.au-login-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 36px; align-items: center; }
.au-login-grid::before { content: ''; grid-column: 2; grid-row: 1; align-self: stretch; background: var(--au-line); }
.au-qr-col { grid-column: 1; grid-row: 1; text-align: center; }
.au-form-col { grid-column: 3; grid-row: 1; }
.au-steps { text-align: left; margin: 16px auto 0; padding-left: 22px; max-width: 320px; color: var(--au-muted); font-size: 14px; }
.au-steps li { margin: 5px 0; }

/* QR */
.au-qr { display: flex; flex-direction: column; align-items: center; }
.au-qr-frame { position: relative; width: 244px; height: 244px; padding: 12px; background: #fff; border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.au-qr-canvas { display: block; width: 220px; height: 220px; border-radius: 8px; image-rendering: pixelated; }
.au-qr-overlay, .au-qr-done { position: absolute; inset: 0; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(14,13,23,.9); color: #fff; }
.au-qr-overlay[hidden], .au-qr-done[hidden] { display: none; }
.au-qr-done span { width: 54px; height: 54px; border-radius: 50%; background: var(--au-ok); color: #06251a; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.au-qr-timer { width: 244px; height: 5px; margin-top: 14px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.au-qr-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--au-accent), var(--au-accent-2)); transition: width .25s linear; }
.au-qr-hint { margin: 10px 0 0; font-size: 13px; color: var(--au-muted); }
.au-qr-status { min-height: 20px; margin: 4px 0 0; font-size: 13.5px; font-weight: 700; color: var(--au-ok); }
.au-qr-status.is-bad { color: var(--au-danger); }

/* подтверждение на телефоне */
.au-facts { margin: 16px 0 22px; padding: 4px 16px; background: #131226; border: 1px solid var(--au-line); border-radius: 16px; }
.au-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--au-line); font-size: 14.5px; }
.au-facts div:last-child { border-bottom: 0; }
.au-facts dt { color: var(--au-muted); } .au-facts dd { margin: 0; font-weight: 700; text-align: right; }
.au-actions { display: flex; flex-direction: column; gap: 10px; }
.au-actions .au-btn { width: 100%; }
.au-result { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; margin: 6px 0 12px; }
.au-result-ok { background: rgba(61,220,151,.16); color: var(--au-ok); }
.au-result-bad { background: rgba(255,93,108,.14); color: var(--au-danger); }

/* оверлей регистрации */
.au-loading { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(8,7,16,.8); backdrop-filter: blur(6px); }
.au-loading.open { display: flex; }
.au-loading-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 40px; border-radius: 22px; background: var(--au-card-2); border: 1px solid var(--au-line); font-weight: 700; text-align: center; max-width: 86vw; }
.au-loading-box .register-loading-emoji { font-size: 44px; }
.au-loading-box.pop { animation: au-pop .32s ease both; }
@keyframes au-pop { from { transform: scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }

/* окно входа на главной */
.au-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8,7,16,.72); backdrop-filter: blur(8px); overflow-y: auto; }
.au-modal[hidden] { display: none; }
.au-modal-box { position: relative; width: 100%; max-width: 440px; margin: auto; text-align: center; padding: 32px 28px 26px; border-radius: 26px; background: var(--au-card-2); border: 1px solid var(--au-line); box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: au-pop .25s ease both; }
.au-modal-box h2 { margin: 0 0 8px; font-size: 24px; }
.au-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: var(--au-text); cursor: pointer; font-size: 15px; }
.au-modal-close:hover { background: rgba(255,255,255,.14); }
.au-modal-alt { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; width: 100%; }
.au-modal-alt .au-btn { width: 100%; }

/* ---------- главная (welcome) ---------- */
.wl-top { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wl-top .au-logo { margin: 0; }
.wl-top-actions { display: flex; gap: 10px; }
.wl-flash { position: relative; z-index: 2; max-width: 760px; margin: 0 auto 8px; padding: 12px 18px; border-radius: 14px; background: rgba(255,93,108,.12); border: 1px solid rgba(255,93,108,.4); color: #ffb3bb; font-weight: 600; text-align: center; }
.wl-main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
.wl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 34px 0 60px; }
.wl-pill { display: inline-block; padding: 7px 14px; border-radius: 99px; background: rgba(124,108,255,.16); border: 1px solid rgba(124,108,255,.4); color: #c9c2ff; font-size: 13px; font-weight: 700; }
.wl-hero h1 { margin: 16px 0 14px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.wl-hero h1 em { font-style: normal; background: linear-gradient(120deg, #8f80ff, #d07bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-hero p { color: var(--au-muted); font-size: 17.5px; max-width: 520px; margin: 0 0 24px; }
.wl-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.wl-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 8px; color: #cfcbeb; font-weight: 600; font-size: 15px; }
.wl-points li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: rgba(61,220,151,.16); color: var(--au-ok); font-size: 13px; font-weight: 800; }
.wl-hero-shots { position: relative; height: 470px; }
.wl-section { padding: 30px 0 40px; }
.wl-section h2 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.02em; text-align: center; }
.wl-sub { text-align: center; color: var(--au-muted); font-size: 16.5px; max-width: 640px; margin: 0 auto 30px; }
.wl-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mk-card { background: var(--au-card); border: 1px solid var(--au-line); border-radius: 22px; padding: 14px; }
.mk-card h3 { margin: 14px 6px 4px; font-size: 17px; } .mk-card p { margin: 0 6px 6px; color: var(--au-muted); font-size: 14px; }
.wl-login-promo { margin-top: 20px; padding: 44px 24px; border-radius: 28px; text-align: center; background: linear-gradient(135deg, rgba(124,108,255,.22), rgba(164,92,255,.12)); border: 1px solid rgba(124,108,255,.3); }
.wl-login-promo .wl-cta { justify-content: center; }
.wl-foot { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 22px 20px 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--au-muted); font-size: 14px; border-top: 1px solid var(--au-line); }
.wl-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- макеты экранов ---------- */
.mk-window { background: #15132a; border: 1px solid var(--au-line); border-radius: 16px; overflow: hidden; font-size: 12px; color: var(--au-text); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1c1a35; border-bottom: 1px solid var(--au-line); }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; } .mk-bar i:nth-child(2) { background: #ffd166; } .mk-bar i:nth-child(3) { background: #3ddc97; }
.mk-bar span { margin-left: 10px; color: var(--au-muted); font-size: 11.5px; }
.mk-feed { position: absolute; left: 0; top: 10px; width: 78%; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.mk-feed-body { display: grid; grid-template-columns: 116px 1fr; min-height: 380px; }
.mk-side { padding: 14px 10px; background: #100f22; border-right: 1px solid var(--au-line); display: flex; flex-direction: column; gap: 4px; }
.mk-side-logo { font-size: 13px; margin-bottom: 8px; }
.mk-side span { padding: 8px 10px; border-radius: 9px; color: var(--au-muted); font-weight: 600; } .mk-side span.on { background: rgba(124,108,255,.18); color: #b9b0ff; }
.mk-col { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mk-post { background: #1c1a35; border: 1px solid var(--au-line); border-radius: 14px; padding: 12px; }
.mk-post-flat { margin: 10px; }
.mk-post p { margin: 8px 0; font-size: 12.5px; }
.mk-post-head { display: flex; align-items: center; gap: 10px; } .mk-post-head small { display: block; color: var(--au-muted); font-size: 10.5px; }
.mk-check { font-style: normal; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #2f8cff; color: #fff; font-size: 9px; vertical-align: middle; }
.mk-media { height: 96px; border-radius: 10px; background: linear-gradient(135deg, #2b5876, #4e4376); } .mk-media-1 { background: linear-gradient(135deg, #3a7bd5, #7a4dd6 60%, #d66fbf); }
.mk-actions { display: flex; gap: 14px; margin-top: 8px; color: var(--au-muted); font-weight: 700; } .mk-actions .liked { color: #ff5d6c; }
.mk-poll div { position: relative; margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: #131226; overflow: hidden; display: flex; justify-content: space-between; }
.mk-poll div::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(124,108,255,.35); }
.mk-poll span, .mk-poll em { position: relative; font-style: normal; font-weight: 700; }

/* аватар с рамкой: фото — строго круг, рамка растягивается на квадрат (без «расплющивания») */
.mk-av { position: relative; display: inline-block; width: var(--s); height: var(--s); flex-shrink: 0; }
.mk-av-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #2a2748; }
.mk-av.has-frame { width: calc(var(--s) * 1.34); height: calc(var(--s) * 1.34); margin: calc(var(--s) * -.05) calc(var(--s) * -.05); }
.mk-av.has-frame .mk-av-img { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; transform: translate(-50%, -50%); }
.mk-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }

.mk-phone { position: absolute; right: 0; bottom: 0; width: 44%; height: 440px; background: #100f22; border: 6px solid #26243f; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.mk-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; background: #26243f; border-radius: 0 0 12px 12px; z-index: 2; }
.mk-chat-head { display: flex; align-items: center; gap: 8px; padding: 22px 12px 10px; background: #1c1a35; } .mk-chat-head small { display: block; color: var(--au-ok); font-size: 10px; }
.mk-chat-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; background-size: cover; background-position: center; }
.mk-msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 12px; font-weight: 600; }
.mk-msg.in { align-self: flex-start; background: rgba(28,26,53,.92); border-bottom-left-radius: 4px; }
.mk-msg.out { align-self: flex-end; background: linear-gradient(120deg, var(--au-accent), var(--au-accent-2)); border-bottom-right-radius: 4px; }
.mk-msg.sticker { background: none; padding: 0; } .mk-msg.sticker img { width: 84px; }
.mk-chat-input { display: flex; align-items: center; justify-content: space-between; margin: 8px; padding: 9px 12px; border-radius: 99px; background: #1c1a35; color: var(--au-muted); }
.mk-chat-input i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--au-accent); color: #fff; font-size: 11px; }

.mk-cover { height: 84px; background-size: cover; background-position: center; } .mk-cover-sm { height: 64px; }
.mk-prof-head { display: flex; align-items: flex-end; gap: 12px; padding: 0 14px; margin-top: -30px; }
.mk-prof-head small { display: block; color: var(--au-muted); font-size: 10.5px; }
.mk-tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; } .mk-tags span { padding: 2px 8px; border-radius: 99px; border: 1px solid rgba(255,190,80,.5); color: #ffc46b; font-size: 10px; font-weight: 700; } .mk-tags .gold { border-color: rgba(255,210,100,.6); }
.mk-stats { display: flex; gap: 14px; padding: 14px; color: var(--au-muted); } .mk-stats b { color: var(--au-text); }
.mk-comm-head { display: flex; align-items: center; gap: 10px; padding: 12px; } .mk-comm-head small { display: block; color: var(--au-muted); font-size: 10.5px; }
.mk-comm-logo { width: 38px; height: 38px; border-radius: 12px; background: #2a2748; display: grid; place-items: center; overflow: hidden; } .mk-comm-logo img { width: 100%; }
.mk-join { margin-left: auto; padding: 6px 12px; border-radius: 99px; background: var(--au-accent); font-weight: 700; font-size: 11px; }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.mk-item { background: #1c1a35; border-radius: 12px; padding: 10px 6px; text-align: center; } .mk-item img { width: 48px; height: 48px; object-fit: contain; } .mk-item b { display: block; font-size: 11.5px; } .mk-item small { color: var(--au-accent); font-weight: 800; }
.mk-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.mk-theme { height: 96px; border-radius: 12px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 8px; border: 1px solid var(--au-line); } .mk-theme span { padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.6); font-size: 11px; font-weight: 700; }

/* адаптив */
@media (max-width: 980px) {
  .wl-hero { grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }
  .wl-hero-shots { height: 440px; max-width: 620px; margin: 0 auto; width: 100%; }
  .wl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .au-card-wide { max-width: 480px; padding: 28px 22px; }
  .au-login-grid { grid-template-columns: 1fr; gap: 0; }
  .au-login-grid::before, .au-qr-col { display: none; } /* QR на телефоне не нужен: сканировать нужно другим устройством */
  .au-form-col { grid-column: 1; }
}
@media (max-width: 560px) {
  .au-card { padding: 24px 18px; border-radius: 22px; }
  .wl-top { padding: 14px 14px; } .wl-top .au-btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
  .wl-main { padding: 0 14px 30px; }
  .wl-hero-shots { height: 400px; }
  .mk-feed { width: 92%; } .mk-feed-body { grid-template-columns: 1fr; } .mk-side { display: none; }
  .mk-phone { width: 52%; height: 380px; }
  .wl-gallery { grid-template-columns: 1fr; }
  .wl-cta .au-btn { flex: 1 1 100%; }
  .au-modal-box { padding: 28px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== Новый экран входа (без QR) ===== */
.au-card-login { max-width: 460px; padding: 34px 32px; }
.au-login-single { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.au-login-single h1 { margin: 4px 0 4px; }
.au-social-stack { display: flex; flex-direction: column; gap: 12px; }
.au-btn { position: relative; max-width: 100%; }
.au-btn svg { flex: 0 0 auto; }
.au-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.au-btn-vk, .au-btn-yandex { width: 100%; }
.au-btn-yandex { color: #fff !important; background: #1d1d24; border-color: rgba(255,255,255,.14); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.au-btn-yandex:hover { background: #26262f; border-color: rgba(252,63,29,.6); }
.au-btn:not(:disabled):hover { transform: translateY(-1px); }
.au-btn:disabled, .au-btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); box-shadow: none; }
.au-btn.is-loading { pointer-events: none; opacity: .85; }
.au-btn.is-loading::after { content: ''; width: 16px; height: 16px; margin-left: 8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: au-spin .7s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-toggle-form { width: 100%; }
.au-form-collapsible[hidden] { display: none; }
.au-form-collapsible { padding-top: 6px; animation: au-pop .2s ease both; }
.au-error[role="alert"] { overflow-wrap: anywhere; }
@media (max-width: 560px) { .au-card-login { padding: 26px 18px; } }

/* ---- согласие с правилами при регистрации ---- */
.au-consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px; margin: 6px 0 14px; font-size: 14px; line-height: 1.45; cursor: pointer; text-align: left; }
.au-consent input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--accent, #0a47f5); cursor: pointer; }
.au-consent a { text-decoration: underline; }

/* Yandex SmartCaptcha */
.au-captcha { display: flex; justify-content: center; min-height: 100px; margin: 2px 0 4px; }
.au-captcha .smart-captcha { max-width: 100%; }


/* ===== Капча на телефоне =====
   backdrop-filter/transform на предке превращает position:fixed окна капчи в «привязанное к карточке»,
   из-за чего задание (поворот картинки) обрезалось и не двигалось пальцем. Убираем это. */
.au-card, .au-card-narrow, .au-form-collapsible { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important; transform: none; will-change: auto; }
.au-form-collapsible { animation: none; }
.au-card { background: color-mix(in srgb, var(--au-card) 96%, #000); }
.au-captcha { overflow: visible; position: relative; z-index: 5; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.au-captcha .smart-captcha, .au-captcha iframe { max-width: 100%; }
html.au-captcha-open, html.au-captcha-open body { overflow: hidden !important; overscroll-behavior: none; touch-action: none; }
@media (max-width: 520px) {
  .au-card { padding: 22px 16px; border-radius: 22px; }
  .au-captcha { transform-origin: top center; }
}

/* ===== Кнопки входа/регистрации: единый вид, крупные зоны касания ===== */
.au-btn { min-height: 50px; border-radius: 14px; font-weight: 700; letter-spacing: -.005em; -webkit-tap-highlight-color: transparent; }
.au-btn:active { transform: translateY(1px) scale(.985); }
.au-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(124,108,255,.45); }
.au-btn-primary { background: linear-gradient(180deg, #8d7fff, #6f5cf5); color: #fff; border: 0; box-shadow: 0 8px 22px rgba(111,92,245,.38); }
.au-btn-primary:not(:disabled):hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(111,92,245,.46); }
.au-btn-ghost { background: rgba(255,255,255,.05); border: 1.5px solid var(--au-line); color: var(--au-text); }
.au-btn-ghost:hover { background: rgba(255,255,255,.1); }
.au-btn-sm { min-height: 40px; border-radius: 11px; font-size: 14px; }
@media (max-width: 520px) {
  .au-btn { width: 100%; min-height: 52px; font-size: 16px; }
  .au-btn-sm { min-height: 44px; }
  .au-field input, .au-input, .au-card input:not([type=checkbox]):not([type=radio]) { min-height: 50px; font-size: 16px; border-radius: 14px; }
}
