/* ============ АВТОРИЗАЦИЯ + УСЛОВИЯ ============ */
.auth-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(7,9,14,.78);backdrop-filter:blur(22px)}
.auth-overlay.hidden{display:none}
.auth-card{width:min(390px,92vw);padding:30px 30px 26px;border-radius:28px;display:flex;flex-direction:column;gap:12px;
  background:color-mix(in srgb,var(--side-base) 78%,transparent);backdrop-filter:blur(34px);border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(0,0,0,.45);animation:authin .3s ease;min-height:min(560px,86vh)}
.auth-actions{margin-top:auto;display:flex;flex-direction:column;gap:12px}
.auth-bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px;padding-top:8px}
.auth-bottom .auth-link{padding:3px 0}
@keyframes authin{from{opacity:0;transform:translateY(10px) scale(.97)}}
.auth-logo{width:68px;height:68px;border-radius:50%;margin:0 auto 6px;background:linear-gradient(135deg,#8b5cf6,#c084fc);display:grid;place-items:center;color:#fff;font-size:28px;font-weight:800;box-shadow:0 10px 30px rgba(139,92,246,.35)}
.auth-card h1{text-align:center;font-size:20px;font-weight:600}
.auth-sub{text-align:center;font-size:12.5px;color:var(--dim)}
.auth-card .textin{width:100%;flex:none}
.auth-alt{display:flex;flex-direction:column;gap:2px;margin-top:2px}
.auth-alt button{font-size:13.5px;font-weight:600;color:var(--accent);padding:8px 0}
.auth-alt button:hover{opacity:.85}
.auth-consent{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--dim);cursor:pointer;line-height:1.45}
.auth-consent input{margin-top:2px;width:16px;height:16px;flex:none;accent-color:var(--accent)}
.auth-consent a{color:var(--accent);text-decoration:underline}
.auth-link{font-size:13px;color:var(--dim);padding:5px 0;font-weight:500}
.auth-link:hover{color:var(--text)}
.auth-foot{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:6px;font-size:11.5px;color:var(--dim)}
.auth-err{font-size:12px;color:#ff6b6b;min-height:16px}
.auth-msg{font-size:12px;color:var(--accent);min-height:16px}
.auth-btn{width:100%;background:var(--accent);color:var(--accent-ink);border-radius:16px;padding:13px 0;font-size:14px;font-weight:600}
.auth-btn:active{transform:scale(.98)}
.terms-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);flex:none}
#ovTerms .modal{flex-direction:column}
.terms-head b{font-size:14px}
.terms-body{flex:1;overflow:auto;padding:14px 18px}
.term-load{color:var(--dim);font-size:12.5px}
.term-list{display:flex;flex-direction:column;gap:6px}
.term-list button{padding:11px 12px;border-radius:12px;background:var(--hover);font-size:13px;text-align:left}
.term-list button:hover{background:var(--active)}
.term-back{padding:8px 10px;border-radius:10px;background:var(--hover);font-size:12px;margin-bottom:10px}
.term-text{font-size:12.5px;line-height:1.6;white-space:pre-wrap;color:var(--text);margin-top:8px}
