
.radio-auth { max-width:980px; margin:0 auto; }
.radio-auth--login { display:grid; grid-template-columns:1fr 1fr; overflow:hidden; border:1px solid var(--radio-border); border-radius:20px; background:var(--radio-cabinet-panel); box-shadow:var(--radio-card-shadow); }
.radio-auth__art { position:relative; isolation:isolate; overflow:hidden; min-height:540px; padding:40px; background:radial-gradient(120% 80% at 20% 0%, var(--radio-brand-2), transparent 60%),radial-gradient(90% 70% at 100% 100%,var(--radio-accent),transparent 60%),var(--radio-brand); }
.radio-auth__brand { display:flex; align-items:center; gap:10px; font-size:18px; font-weight:700; letter-spacing:.02em; line-height:1.1; }
.radio-auth__brand .custom-logo { width:40px; height:40px; object-fit:contain; }
.radio-auth__brand .custom-logo-link { pointer-events:none; }
.radio-auth__disc { position:absolute; z-index:-1; left:50%; top:52%; width:220px; aspect-ratio:1; margin:-110px 0 0 -110px; border-radius:50%; background:var(--radio-vinyl-grooves); box-shadow:var(--radio-vinyl-disc-shadow); animation:radio-auth-spin var(--radio-vinyl-turn-duration) linear infinite; animation-play-state:paused; }
.radio-auth-modal[open] .radio-auth__disc { animation-play-state:running; }
.radio-auth__disc::after { content:""; position:absolute; inset:0; border-radius:50%; background:var(--radio-vinyl-reflection); }
.radio-auth__waves { position:absolute; z-index:-1; left:50%; top:52%; }
.radio-auth__waves i { position:absolute; border:1px solid var(--radio-line-strong); border-radius:50%; transform:translate(-50%,-50%); animation:radio-auth-wave 4s ease-out infinite; }
.radio-auth__waves i:nth-child(1) { width:260px; height:260px; }
.radio-auth__waves i:nth-child(2) { width:360px; height:360px; animation-delay:-1.3s; }
.radio-auth__waves i:nth-child(3) { width:470px; height:470px; animation-delay:-2.6s; }
@keyframes radio-auth-spin { to { transform:rotate(360deg); } }
@keyframes radio-auth-wave { from { opacity:.9; } to { opacity:.15; } }
.radio-auth__form { min-width:0; padding:48px 44px; display:flex; flex-direction:column; justify-content:center; }
.radio-auth__form h1 { font-size:30px; line-height:1.15; margin:0 0 22px; }
.radio-auth__form h2 { font-size:20px; margin:0; }
.radio-auth__tabs { display:flex; gap:4px; padding:4px; border-radius:12px; background:var(--radio-hover); margin-bottom:20px; }
.radio-auth__tabs button { flex:1; height:40px; border:0; border-radius:9px; background:none; color:var(--radio-muted); font:inherit; font-weight:600; cursor:pointer; }
.radio-auth__tabs [aria-selected="true"] { background:var(--radio-accent); color:var(--radio-white); }
.radio-auth__fields { display:grid; gap:10px; margin:0; }
.radio-auth__fields[hidden] { display:none; }
.radio-auth__field { display:grid; gap:4px; font-size:13px; color:var(--radio-muted); }
.radio-auth__field input { width:100%; min-width:0; box-sizing:border-box; height:48px; padding:0 14px; border:1px solid var(--radio-line-strong); border-radius:12px; background:var(--radio-panel-2); color:var(--radio-text); font:inherit; font-size:16px; }
.radio-auth__field input:focus-visible { outline:2px solid var(--radio-accent); outline-offset:2px; }
.radio-auth__submit { height:50px; font-size:16px; font-weight:700; border-radius:12px; }
.radio-auth button:disabled { opacity:.45; cursor:not-allowed; }
.radio-auth__links { display:flex; justify-content:flex-end; }
.radio-auth__link { border:0; padding:0; background:none; color:var(--radio-accent-light); font:inherit; font-size:13px; cursor:pointer; text-align:left; }
.radio-auth__form > .radio-auth__link { margin-top:14px; }
.radio-auth a { color:var(--radio-accent-light); text-underline-offset:3px; }
.radio-auth__consent { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--radio-muted); margin:6px 0; }
.radio-auth__consent input { flex:none; width:18px; height:18px; margin:2px 0 0; accent-color:var(--radio-accent); }
.radio-auth__status { margin:16px 0 0; color:var(--radio-muted); font-size:14px; overflow-wrap:anywhere; }
.radio-auth__status:empty { display:none; }
.radio-auth__status--error { color:var(--radio-error); }
.radio-auth__note { font-size:13px; color:var(--radio-text-subtle); margin:8px 0 0; }
.radio-auth__or { display:flex; align-items:center; gap:12px; margin:22px 0 14px; font-size:13px; color:var(--radio-text-subtle); }
.radio-auth__or::before,.radio-auth__or::after { content:""; height:1px; flex:1; background:var(--radio-border); }
.radio-auth__providers { display:flex; flex-wrap:wrap; gap:12px; }
.radio-auth__provider { flex:1; min-height:48px; border:0; border-radius:12px; background:var(--radio-vk); color:var(--radio-white); cursor:pointer; font:inherit; font-weight:600; }
.radio-auth__provider:hover { filter:brightness(1.08); }
.radio-auth__provider--yandex { background:var(--radio-bg); border:1px solid var(--radio-line-strong); }
.radio-auth__provider--ok { background:var(--radio-ok); }
.radio-auth__actions { display:flex; flex-wrap:wrap; gap:8px; }
.radio-auth__trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.radio-auth :focus-visible { outline:2px solid var(--radio-accent); outline-offset:3px; }
@media (max-width:1100px) { .radio-auth__form { padding:32px 24px; } }
@media (max-width:820px) { .radio-auth--login { grid-template-columns:1fr; max-width:460px; } .radio-auth__art { display:none; } .radio-auth__form { padding:26px 22px 28px; } .radio-auth__form h1 { font-size:24px; } .radio-auth__providers { flex-direction:column; } }
@media (prefers-reduced-motion:reduce) { .radio-auth__disc,.radio-auth__waves i { animation:none; } }

/* Официальные знаки VK Icons и Яндекс ID, пропорции сохранены. */
.radio-auth__provider { display:flex; align-items:center; justify-content:center; gap:8px; padding:0 12px; min-width:96px; font-size:14px; }
.radio-auth .radio-auth__provider img { width:24px; height:24px; object-fit:contain; }
.radio-auth__provider--vk img,.radio-auth__provider--ok img { filter:brightness(0) invert(1); }
.radio-auth__provider--yandex { background:var(--radio-white); color:var(--radio-bg); border:0; }
.radio-auth .radio-auth__provider--yandex img { width:auto; max-width:100%; height:28px; }

/* Диалог общий для любой страницы; форма входа видна сразу. */
.radio-auth-modal { position:fixed; overflow:visible; width:min(420px,calc(100% - 32px)); max-height:calc(100dvh - 144px); margin:auto; padding:0; border:1px solid var(--radio-border); border-radius:24px; color:var(--radio-text); background:var(--radio-cabinet-panel); box-shadow:var(--radio-card-shadow); }
.radio-auth-modal::backdrop { background:var(--radio-modal-backdrop); backdrop-filter:blur(8px); }
.radio-auth-modal__close { position:absolute; right:14px; top:14px; z-index:2; display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--radio-border); border-radius:50%; background:var(--radio-panel); color:var(--radio-muted); font:inherit; font-size:24px; cursor:pointer; }
.radio-auth-modal .radio-auth--login { display:block; overflow:visible; border:0; border-radius:inherit; background:none; box-shadow:none; }
.radio-auth-modal .radio-auth__form { display:block; max-height:calc(100dvh - 148px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--radio-border) transparent; padding:84px 32px 28px; text-align:center; }
.radio-auth-modal .radio-auth__disc { position:absolute; z-index:0; top:-60px; left:calc(50% - 75px); width:150px; height:150px; margin:0; pointer-events:none; }
.radio-auth-modal .radio-auth__form > h2 { margin:0 0 10px; font-size:26px; line-height:1.2; }
.radio-auth__intro { margin:0 0 22px; color:var(--radio-muted); font-size:14px; }
.radio-auth-modal .radio-auth__providers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.radio-auth-modal .radio-auth__provider { min-width:0; }
.radio-auth-modal .radio-auth__provider--vk { grid-column:1 / -1; min-height:52px; }
.radio-auth-modal .radio-auth__or { display:none; }
.radio-auth__email { margin-top:20px; text-align:left; }
.radio-auth-modal .radio-auth__note { font-size:11.5px; }
@media(max-width:480px) { .radio-auth-modal .radio-auth__form { padding-inline:22px; } }

.radio-auth__onetap { min-height:52px; margin-bottom:10px; }
.radio-auth__onetap:empty { display:none; }
.radio-auth__provider[hidden] { display:none; }
.radio-auth__provider--mail { background:var(--radio-vk); }

.radio-auth__provider--mail img { filter:brightness(0) invert(1); }
