:root{--auth-bg: #edf2f7;--auth-surface: rgba(255, 255, 255, .84);--auth-surface-strong: #ffffff;--auth-border: rgba(148, 163, 184, .22);--auth-border-strong: rgba(100, 116, 139, .2);--auth-text: #0f172a;--auth-muted: #667085;--auth-accent: #2563eb;--auth-accent-strong: #0f172a;--auth-accent-soft: #dbeafe;--auth-success: #0f766e;--auth-danger: #b42318;--auth-radius-xl: 32px;--auth-radius-lg: 22px;--auth-radius-md: 16px;--auth-shadow: 0 28px 80px rgba(15, 23, 42, .09)}html,body{min-height:100%;margin:0;background:radial-gradient(circle at top left,rgba(251,191,36,.2),transparent 22rem),radial-gradient(circle at 82% 12%,rgba(37,99,235,.16),transparent 18rem),linear-gradient(180deg,#f8fafc,#eef2ff 48%,#edf2f7)}.auth-layout{min-height:100dvh;color:var(--auth-text);font-family:Space Grotesk,Avenir Next,SF Pro Display,PingFang SC,Microsoft YaHei,sans-serif;background:radial-gradient(circle at top left,rgba(251,191,36,.2),transparent 22rem),radial-gradient(circle at 82% 12%,rgba(37,99,235,.16),transparent 18rem),linear-gradient(180deg,#f8fafc,#eef2ff 48%,#edf2f7);padding:2rem 1.25rem 3rem}.auth-shell{width:min(760px,100%);margin:0 auto;display:grid;gap:1rem}.auth-card{position:relative;background:transparent;border:none;border-radius:0;box-shadow:none;backdrop-filter:none}.auth-card--interactive{padding:clamp(1.6rem,3vw,2.1rem);display:grid;gap:1.2rem;justify-items:center}.auth-spinner{width:2.6rem;height:2.6rem;border-radius:999px;border:3px solid transparent;animation:auth-spinner-rotate .9s linear infinite}.auth-spinner--dark{border-top-color:#0f172a;border-right-color:#0f172ac7;border-bottom-color:#fffffff5;border-left-color:#ffffff61;box-shadow:0 10px 30px #0f172a24}.auth-spinner--light{border-top-color:#fffffffa;border-right-color:#ffffffb8;border-bottom-color:#ffffff47;border-left-color:#ffffff24}.auth-spinner--button{width:1.15rem;height:1.15rem;border-width:2px;box-shadow:none}@keyframes auth-spinner-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.auth-intro{padding:0;width:100%}.auth-intro h1{margin:0;font-size:clamp(1.55rem,2vw,1.95rem);line-height:1.1;letter-spacing:-.03em;color:#64748b;text-align:center;font-weight:700}.auth-intro--compact p,.auth-intro__eyebrow{display:none}.auth-provider-stack,.provider-rail,.user-connections__list{display:grid;gap:.9rem}.auth-provider-stack,.auth-separator,.auth-card__form--minimal{width:min(100%,320px)}.provider-row,.identity-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.05rem;border-radius:var(--auth-radius-lg);border:1px solid var(--auth-border-strong);background:linear-gradient(135deg,#fffffff5,#f8fafceb),#ffffffe6}.provider-row__copy,.identity-item__copy{display:flex;align-items:center;gap:.9rem;min-width:0}.provider-row h3,.identity-item h3{display:block;margin:0;font-size:1.02rem;font-weight:700;letter-spacing:-.02em}.provider-row__copy p,.identity-item__copy p{margin:.15rem 0 0}.provider-row__action{flex:0 0 auto;min-width:min(100%,292px);display:flex;justify-content:flex-end}.provider-row__action--telegram{min-width:min(100%,260px)}.oauth-provider-card__mount{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;overflow:visible}.oauth-provider-card__mount--wide{min-width:100%}.oauth-provider-card__mount iframe,.oauth-provider-card__mount>div{max-width:100%}.oauth-provider-card__mount--telegram iframe{max-width:100%;width:100%!important}.auth-provider-direct,.auth-provider-direct .oauth-button,.auth-provider-direct .oauth-provider-card__mount,.auth-provider-direct iframe{width:100%}.oauth-provider-card__mount--direct{border:none;border-radius:0;background:transparent;padding:0;min-height:48px}.auth-separator{display:grid;grid-template-columns:1fr auto 1fr;gap:.9rem;align-items:center;color:#475569;font-size:1.05rem;font-weight:700}.auth-separator:before,.auth-separator:after{content:"";height:1px;background:#94a3b873}.auth-card__form{display:grid;gap:1.05rem}.auth-card__form--minimal{gap:1.05rem}.auth-card__form--passkey{margin-top:.2rem}.field{display:grid;gap:.45rem;font-weight:700}.field--minimal span:not(.sr-only){display:none}.field input{width:100%;box-sizing:border-box;min-height:48px;padding:.75rem 1rem;border-radius:20px;border:1px solid rgba(148,163,184,.32);background:#fffffff2;font-size:1rem;color:var(--auth-text);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.field input::placeholder{color:#94a3b8}.field input:focus{outline:none;border-color:#2563eb70;box-shadow:0 0 0 4px #2563eb1f;transform:translateY(-1px)}.auth-action-stack{display:grid;gap:.9rem}button.primary,.oauth-button,button.secondary{width:100%;min-height:48px;border-radius:999px;font-weight:700;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}button.primary{display:inline-flex;align-items:center;justify-content:center;border:none;color:#fff;background:#0f172a;background-image:none;box-shadow:none;cursor:pointer}button.primary:hover:not(:disabled),.oauth-button:hover:not(:disabled),button.secondary:hover:not(:disabled){transform:translateY(-1px)}button.primary:disabled,.oauth-button:disabled,button.secondary:disabled{opacity:.7;cursor:not-allowed;box-shadow:none}.oauth-button,button.secondary{border:1px solid rgba(148,163,184,.24);background:#ffffffe6;color:var(--auth-text);padding:.7rem 1rem}.oauth-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:.75rem;text-align:left}.oauth-button--ghost{color:#334155}.oauth-button--brand{color:#fff;border-color:transparent}.oauth-button--loading,.primary--loading{display:inline-flex;align-items:center;justify-content:center;text-align:center}.oauth-button--x{background:#0f172a;background-image:none}.oauth-button--direct{min-height:48px}.oauth-button__icon{flex:0 0 1.75rem;width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center}.oauth-button__icon img,.oauth-button__svg{display:block;width:100%;height:100%}.oauth-button__icon--google{background:transparent}.oauth-button__icon--x{color:#fff}.oauth-button__copy{min-width:0;display:grid;gap:.08rem}.oauth-button__brand{display:block;font-size:.98rem;font-weight:800}.oauth-button__hint{display:block;color:inherit;opacity:.7;font-size:.84rem}.muted{color:var(--auth-muted)}.muted.small{font-size:.92rem}.muted.helper{font-size:.95rem;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.alert{margin:0;padding:.85rem 1rem;border-radius:18px;border:1px solid transparent}.alert.error{color:var(--auth-danger);background:#fef3f2;border-color:#b4231829}.alert.success{color:var(--auth-success);background:#ecfdf3;border-color:#0f766e29}.user-dashboard{display:flex;flex-direction:column;gap:2rem}.user-dashboard__header{display:grid;gap:.5rem;padding:0 .5rem}.user-dashboard__header h1{margin:.3rem 0 0;font-size:clamp(1.9rem,2vw,2.4rem);letter-spacing:-.04em}.user-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.user-tile{position:relative;background:#ffffffdb;border:1px solid rgba(148,163,184,.2);border-radius:26px;padding:1.45rem;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;display:flex;flex-direction:column;gap:.55rem;overflow:hidden;text-decoration:none;box-shadow:0 16px 40px #0f172a0d}.user-tile:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#2563eb00,#2563eb57,#2563eb00);opacity:0;transition:opacity .22s ease}.user-tile:hover{transform:translateY(-3px);box-shadow:0 24px 45px #0f172a17;border-color:#3b82f63d}.user-tile:hover:before{opacity:1}.user-tile h2{margin:0;font-size:1.05rem;font-weight:700;color:var(--auth-text);display:flex;align-items:center;gap:.5rem}.user-tile .value{margin:.35rem 0 .85rem;font-size:1.18rem;color:#475569}.user-tile .action-link{margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;font-size:.95rem;font-weight:600;color:var(--auth-accent);text-decoration:none}.user-tile.highlight{background:linear-gradient(135deg,#fffffffa,#dbeafebd)}.user-connections{padding:1.25rem;display:grid;gap:1rem}.passkey-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.passkey-card{display:grid;gap:1rem;align-content:start;padding:1.1rem;border-radius:26px;border:1px solid rgba(148,163,184,.2);background:linear-gradient(135deg,#fffffff5,#f8fafce6),#ffffffeb;box-shadow:0 14px 36px #0f172a0a}.passkey-card--action{background:linear-gradient(135deg,#dbeafe7a,#fffffff0)}.passkey-card__copy{display:flex;align-items:center;gap:.9rem}.passkey-card__copy>div{min-width:0}.passkey-card__copy h3{margin:0 0 .1rem;font-size:1rem}.passkey-card__meta{display:grid;gap:.35rem;color:#475569;font-size:.92rem}.provider-row{align-items:center}.provider-row__copy{flex:1 1 auto}.provider-row__action{flex:0 0 280px;min-width:280px;justify-content:flex-end}.provider-row__simple-action{width:auto;min-width:120px;padding-inline:1.2rem;justify-self:end}.provider-row__status{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 1rem;border-radius:999px;background:#ffffffe6;border:1px solid rgba(148,163,184,.24);color:#334155;font-weight:700;white-space:nowrap}.user-dashboard__footer{padding:0 .5rem;display:flex;justify-content:flex-start}.identity-item{align-items:center}.identity-item__badge,.provider-row__badge{display:inline-flex;align-items:center;justify-content:center;width:3rem;height:3rem;padding:0;border-radius:999px;background:#ffffffe6;border:1px solid rgba(148,163,184,.2);overflow:hidden}.identity-item__badge img,.provider-row__badge img,.provider-row__badge-svg{width:66%;height:66%;display:block}.identity-item__badge--google,.provider-row__badge--google{background:#fffffff5}.identity-item__badge--x,.provider-row__badge--x{background:#000;color:#fff}.identity-item__badge--x img,.provider-row__badge--x img,.provider-row__badge--x .provider-row__badge-svg{width:62%;height:62%}.provider-row h3,.identity-item h3{margin-bottom:.1rem}.provider-row__copy>div,.identity-item__copy>div{min-width:0}.user-card p{margin:0}code{background:#f8fafc;padding:.2rem .45rem;border-radius:8px;font-size:.95rem}@media(max-width:900px){.provider-row,.identity-item,.user-dashboard__header,.passkey-card__copy{flex-direction:column;align-items:stretch}.provider-row__action{width:100%;min-width:0;flex-basis:auto;justify-content:stretch}.provider-row__simple-action{width:100%;justify-self:stretch}.oauth-provider-card__mount,.oauth-provider-card__mount--wide{min-width:0;justify-content:flex-start}.oauth-provider-card__mount--telegram iframe{width:100%!important}}@media(max-width:640px){.auth-layout{padding-inline:.9rem}.auth-card--interactive,.user-connections{border-radius:24px}button.primary,.oauth-button,button.secondary{width:100%}.user-grid{grid-template-columns:1fr}}
