:root{color:#121118;background:#f7f7fa;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--accent: #6d28d9;--accent-dark: #5b21b6;--accent-soft: #f3eeff;--line: #e7e4ed;--muted: #6b6879;--danger: #b91c1c}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}html,body,#root{margin:0;width:100%;min-height:100%}body{min-width:320px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid rgba(109,40,217,.28);outline-offset:2px}.login-page{position:relative;isolation:isolate;min-height:100vh;min-height:100dvh;display:grid;place-items:center;overflow:hidden;padding:calc(22px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));background:radial-gradient(circle at 12% 10%,rgba(196,181,253,.52),transparent 31rem),radial-gradient(circle at 88% 90%,rgba(221,214,254,.7),transparent 28rem),linear-gradient(145deg,#faf9fd,#f3f0fa 48%,#f8f7fb)}.ambient{position:absolute;z-index:-1;border-radius:999px;filter:blur(4px);opacity:.55}.ambient-one{width:200px;height:200px;background:#ddd6fe;top:-85px;right:-60px}.ambient-two{width:160px;height:160px;background:#ede9fe;bottom:-70px;left:-55px}.login-card{width:min(100%,440px);padding:clamp(24px,7vw,36px);border:1px solid rgba(255,255,255,.8);border-radius:26px;background:#ffffffe6;box-shadow:0 24px 70px #2c1f4d26,0 2px 8px #23183f0f;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px}.brand-logo{display:block;width:min(190px,55vw);height:42px;object-fit:contain;object-position:left center}.product-pill{flex:0 0 auto;border-radius:999px;padding:7px 10px;color:var(--accent-dark);background:var(--accent-soft);font-size:12px;font-weight:750;letter-spacing:.02em}.login-heading{margin:34px 0 24px}.eyebrow{display:block;margin-bottom:8px;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.login-heading h1{margin:0;font-size:clamp(30px,9vw,38px);line-height:1.05;letter-spacing:-.04em}.login-heading p{margin:12px 0 0;color:var(--muted);font-size:15px;line-height:1.55}.alert{margin-bottom:18px;padding:12px 14px;border:1px solid #f2bcbc;border-radius:12px;background:#fff1f1;color:var(--danger);font-size:14px;line-height:1.45}.login-form{display:flex;flex-direction:column;gap:18px}.field{display:flex;flex-direction:column;gap:8px;color:#3b3947;font-size:14px;font-weight:700}.field input{width:100%;height:52px;border:1px solid #d9d5e2;border-radius:13px;padding:0 15px;color:#121118;background:#fbfafd;font-size:16px;font-weight:450;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}.field input::placeholder{color:#9b97a7}.field input:hover{border-color:#c4b5fd}.field input:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 4px #6d28d91c}.password-wrap{position:relative}.password-wrap input{padding-right:52px}.password-toggle{position:absolute;right:6px;top:6px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;color:var(--muted);background:transparent;cursor:pointer}.password-toggle:hover{color:var(--accent);background:var(--accent-soft)}.password-toggle svg,.security-note svg,.back-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.form-options{display:flex;align-items:center;justify-content:space-between;gap:12px}.form-options a,.text-button{color:var(--accent);font-size:13.5px;font-weight:750;text-decoration:none}.form-options a:hover,.text-button:hover{color:var(--accent-dark);text-decoration:underline}.check-label{display:inline-flex;align-items:center;gap:8px;color:#4e4b5a;font-size:13.5px;cursor:pointer}.check-label input{width:18px;height:18px;margin:0;accent-color:var(--accent)}.primary-button{width:100%;min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:14px;color:#fff;background:linear-gradient(135deg,#7c3aed,#5b21b6);box-shadow:0 10px 24px #6d28d947;font-size:16px;font-weight:760;cursor:pointer;transition:transform .15s,box-shadow .15s,opacity .15s}.primary-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 13px 28px #6d28d957}.primary-button:active:not(:disabled){transform:translateY(0)}.primary-button:disabled{cursor:not-allowed;opacity:.58;box-shadow:none}.login-card footer{margin-top:30px;padding-top:20px;border-top:1px solid #eeecf2;color:#8a8696;font-size:12.5px;text-align:center}.security-note{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid #ddd0fb;border-radius:13px;color:#4c1d95;background:#f7f3ff;font-size:13.5px;line-height:1.45}.security-note svg{flex:0 0 auto;margin-top:1px}.method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.method{min-height:44px;border:1px solid #d9d5e2;border-radius:11px;color:var(--muted);background:#fff;font-size:13px;font-weight:750;cursor:pointer}.method.active{border-color:var(--accent);color:var(--accent-dark);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.helper-text,.expiry{margin:-4px 0;color:var(--muted);font-size:13.5px;line-height:1.45}.expiry{font-size:12.5px;font-weight:650}.expiry.expired{color:var(--danger)}.text-button{align-self:flex-start;padding:0;border:0;background:transparent;cursor:pointer}.text-button:disabled{opacity:.5;cursor:not-allowed;text-decoration:none}.field .code-input{height:58px;text-align:center;font-size:24px;font-weight:700;letter-spacing:.3em;font-variant-numeric:tabular-nums}.back-button{align-self:center;display:inline-flex;align-items:center;gap:5px;padding:7px 8px;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:13.5px;font-weight:700;cursor:pointer}.back-button:hover{color:var(--accent-dark);background:var(--accent-soft)}.spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:spin .75s linear infinite}.spinner.dark{border-color:#ddd6fe;border-top-color:var(--accent)}@keyframes spin{to{transform:rotate(360deg)}}.splash{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--muted);background:#f7f7fa}.splash img{width:min(220px,62vw)}.splash p{margin:0;font-size:14px}.app-failure{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;color:#2d2a36;background:#f7f7fa;text-align:center}.app-failure img{width:min(220px,62vw);margin-bottom:8px}.app-failure h1{margin:0;font-size:clamp(24px,6vw,32px)}.app-failure p{margin:0 0 8px;color:var(--muted)}.app-failure button{min-height:46px;padding:0 20px;border:0;border-radius:12px;color:#fff;background:var(--accent);font-weight:750;cursor:pointer}.patrol-shell{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;background:#f7f7fa}.patrol-frame{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;border:0;background:#f7f7fa}.profile-control{position:fixed;z-index:30;top:calc(10px + env(safe-area-inset-top));right:calc(max(0px,(100vw - 480px) / 2) + 16px)}.profile-trigger{width:40px;height:40px;display:grid;place-items:center;padding:0;border:1px solid #ecebf1;border-radius:12px;color:#5b21b6;background:#fff;box-shadow:0 1px 2px #12111814;cursor:pointer}.profile-trigger span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#f3eeff;font-size:11px;font-weight:800;letter-spacing:.02em}.profile-trigger:hover,.profile-trigger[aria-expanded=true]{border-color:#c9b8fb;background:#fbf9ff}.profile-popover{position:absolute;top:48px;right:0;width:min(320px,calc(100vw - 32px));overflow:hidden;border:1px solid #e7e4ed;border-radius:18px;background:#fff;box-shadow:0 18px 52px #1e143c33;animation:profile-in .16s ease-out}@keyframes profile-in{0%{opacity:0;transform:translateY(-5px) scale(.98)}}.profile-header{position:relative;display:flex;align-items:center;gap:12px;padding:18px;background:#faf8ff;border-bottom:1px solid #eeeaf5}.profile-avatar{width:46px;height:46px;flex:0 0 auto;display:grid;place-items:center;border-radius:14px;color:#fff;background:#6d28d9;font-size:15px;font-weight:800}.profile-header h2{margin:1px 32px 2px 0;color:#121118;font-size:16px;line-height:1.2}.profile-header p{margin:0;color:#6b6879;font-size:12.5px}.profile-header .profile-kicker{color:#6d28d9;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.profile-close{position:absolute;top:10px;right:10px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;color:#6b6879;background:transparent;cursor:pointer}.profile-close:hover{color:#3b3947;background:#efedf5}.profile-close svg,.logout-button svg,.switcher-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.profile-details{padding:8px 18px 10px}.profile-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #f0eef4;font-size:13px}.profile-row span{color:#777384}.profile-row strong{min-width:0;color:#2d2a36;font-weight:700;text-align:right;overflow-wrap:anywhere}.profile-status{display:flex;align-items:center;gap:7px;padding-top:12px;color:#166534;font-size:12.5px;font-weight:700}.profile-status span{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px #dcfce7}.subscription-switcher{padding:14px 18px;border-top:1px solid #eeeaf5}.switcher-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.switcher-heading strong{color:#2d2a36;font-size:13px}.switcher-heading span{color:#777384;font-size:11px}.switcher-list{max-height:190px;display:grid;gap:7px;overflow-y:auto}.switcher-option{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #ebe7f2;border-radius:11px;color:#2d2a36;background:#fff;text-align:left;cursor:pointer}.switcher-option:hover:not(:disabled){border-color:#c9b8fb;background:#faf8ff}.switcher-option:disabled{opacity:.65;cursor:wait}.switcher-avatar{width:32px;height:32px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px;color:#5b21b6;background:#f3eeff;font-size:12px;font-weight:800}.switcher-copy{min-width:0;flex:1;display:grid;gap:2px}.switcher-copy strong,.switcher-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.switcher-copy strong{font-size:12.5px}.switcher-copy small{color:#777384;font-size:10.5px}.switcher-action{width:22px;height:22px;flex:0 0 auto;display:grid;place-items:center;color:#6d28d9}.switcher-action .spinner{width:16px;height:16px}.switcher-loading,.switcher-empty{margin:0;padding:10px 0;color:#777384;font-size:12px;text-align:center}.switcher-loading{display:flex;align-items:center;justify-content:center;gap:8px}.switcher-loading .spinner{width:16px;height:16px}.switcher-error{margin:0 0 9px;padding:8px 10px;border-radius:9px;color:#991b1b;background:#fef2f2;font-size:11.5px;line-height:1.35}.logout-button{width:calc(100% - 36px);min-height:44px;margin:0 18px 18px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #f3cccc;border-radius:12px;color:#b91c1c;background:#fff7f7;font-size:14px;font-weight:750;cursor:pointer}.logout-button:hover:not(:disabled){border-color:#e9aaaa;background:#fff0f0}.logout-button:disabled{opacity:.65;cursor:wait}.logout-button .spinner{width:16px;height:16px;border-color:#f4c7c7;border-top-color:#b91c1c}.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}@media(max-width:420px){.profile-popover{position:fixed;top:calc(58px + env(safe-area-inset-top));right:16px;left:16px;width:auto;max-height:calc(100dvh - 76px - env(safe-area-inset-top));overflow-y:auto}.login-page{padding-left:0;padding-right:0;background:#fff;place-items:stretch}.login-card{min-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 44px);width:100%;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.login-heading{margin-top:38px}.form-options{align-items:flex-start}}@media(min-width:900px){.profile-control{top:clamp(28px,2vw,44px);right:clamp(28px,2vw,44px)}.profile-popover{width:340px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
