/* Auth readiness and the saved-session receipt share the existing portal theme. */
[data-auth-login][hidden],.tgo-auth-pending[hidden],.tgo-auth-check-dots[hidden],#authRetry[hidden]{display:none!important}
.tgo-auth-pending{width:min(420px,100%);text-align:center;padding:30px 24px;border:1px solid var(--border,#e6e8ef);border-radius:24px;background:var(--card,#fff);color:var(--text,#292640);box-shadow:0 18px 65px #232c4512}
.tgo-auth-pending img{display:block;width:150px;height:auto;max-width:55%;margin:0 auto 20px}.tgo-auth-pending strong{display:block;font-size:18px}.tgo-auth-pending p{font-size:14px;color:var(--muted,#73758a);line-height:1.6;margin:10px 0}.tgo-auth-pending button{margin-top:12px}
.tgo-auth-check-dots{display:flex;justify-content:center;gap:6px;margin:16px 0 0}.tgo-auth-check-dots i{width:5px;height:5px;border-radius:50%;background:#9186bc;animation:tgo-auth-dot 1.15s ease-in-out infinite}.tgo-auth-check-dots i:nth-child(2){animation-delay:.15s}.tgo-auth-check-dots i:nth-child(3){animation-delay:.3s}
#btnLogin[aria-busy=true]{display:flex;gap:9px;align-items:center;justify-content:center}.tgo-auth-button-wait{width:16px;height:16px;border:2px solid #ffffff5c;border-top-color:#fff;border-radius:50%;animation:tgo-auth-spin .8s linear infinite}
.tgo-auth-failure{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:24px;background:var(--bg,#f5f6fb);color:var(--text,#292640);direction:rtl}.tgo-auth-failure-card{width:min(380px,100%);border:1px solid var(--border,#e4e7ef);border-radius:24px;padding:30px;text-align:center;background:var(--card,#fff);box-shadow:0 20px 65px #232c4512}.tgo-auth-failure-card strong{font-size:22px}.tgo-auth-failure-card p{line-height:1.7;color:var(--muted,#70748a);font-size:14px}
.tgo-auth-restored{position:fixed;z-index:9990;top:max(18px,calc(env(safe-area-inset-top) + 12px));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);display:flex;align-items:center;gap:12px;padding:13px 15px;background:#f0fbf5;color:#225842;border:1px solid #b8dec9;border-radius:18px;box-shadow:0 12px 38px #18573513;animation:tgo-auth-receipt .2s ease-out both;box-sizing:border-box}.tgo-auth-restored-check{width:33px;height:33px;flex-shrink:0;display:grid;place-items:center;background:#d8f2e4;color:#27875d;border-radius:50%}.tgo-auth-restored-check svg{width:21px;height:21px}.tgo-auth-restored strong{display:block;font-size:15px;font-weight:750;line-height:1.4}.tgo-auth-restored small{display:block;font-size:12px;line-height:1.55;margin-top:3px}.tgo-auth-restored button{flex-shrink:0;width:27px;height:27px;padding:0;border:0;background:transparent;color:inherit;font-size:23px;opacity:.6;cursor:pointer;border-radius:50%}.tgo-auth-restored button:hover{background:#d8f2e4;opacity:1}
html[data-tgo-theme=dark] .tgo-auth-restored{background:#233d36;color:#d7f5e4;border-color:#466d5b;box-shadow:0 12px 38px #101c262b}html[data-tgo-theme=dark] .tgo-auth-restored-check{background:#315345;color:#8fe0b4}
.tgo-auth-restored.is-leaving{animation:none;opacity:0;translate:0 -6px;transition:opacity .18s ease,translate .18s ease}
@keyframes tgo-auth-dot{50%{opacity:.35;transform:translateY(-3px)}}@keyframes tgo-auth-spin{to{transform:rotate(360deg)}}@keyframes tgo-auth-receipt{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
@media(max-width:520px){.tgo-auth-restored{gap:9px;padding:11px 12px}.tgo-auth-restored small{font-size:12px}.tgo-auth-restored-check{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.tgo-auth-restored,.tgo-auth-check-dots i,.tgo-auth-button-wait{animation:none!important}.tgo-auth-restored.is-leaving{transition:none;translate:none}}html[data-tgo-motion=off] :is(.tgo-auth-restored,.tgo-auth-check-dots i,.tgo-auth-button-wait){animation:none!important}html[data-tgo-motion=off] .tgo-auth-restored.is-leaving{transition:none;translate:none}
