.auth-shell{--bg:#f8fafc;--surface:#fff;--border:#e5e7eb;--border-strong:#d1d5db;--text:#111827;--text-secondary:#374151;--text-muted:#6b7280;--text-soft:#9ca3af;--primary:var(--tpl-primary,#2563eb);--primary-hover:var(--tpl-primary-hover,#1d4ed8);--primary-soft:var(--tpl-primary-soft,#dbeafe);--danger:#dc2626;--shadow-sm:0 1px 2px rgba(16,24,40,.05);--shadow-lg:0 20px 48px rgba(15,23,42,.1),0 4px 12px rgba(15,23,42,.05);--radius-lg:16px;--topbar-height:64px;--transition:.16s ease;background:var(--bg);color:var(--text);display:grid;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;grid-template-rows:var(--topbar-height) minmax(0,1fr) auto;line-height:1.5;min-height:100vh;min-height:100dvh;overflow:hidden;position:relative}.auth-shell *,.auth-shell :after,.auth-shell :before{box-sizing:border-box}.auth-shell button,.auth-shell input{font:inherit}.auth-shell a{color:inherit}.auth-shell .topbar{align-items:center;background:transparent;border-bottom:0;display:flex;height:var(--topbar-height);justify-content:flex-end;padding:0 28px;position:relative;z-index:10}.auth-shell .language-menu{position:relative}.auth-shell .language-button{align-items:center;background:transparent;border:0;border-radius:0;color:var(--text-secondary);cursor:pointer;display:inline-flex;font-weight:600;gap:8px;height:38px;padding:0 12px;transition:background var(--transition),border-color var(--transition)}.auth-shell .language-button:focus,.auth-shell .language-button:focus-visible,.auth-shell .language-button:hover,.auth-shell .language-button[aria-expanded=true]{background:transparent;border-color:transparent;box-shadow:none;outline:none}.auth-shell .language-button svg{flex:0 0 auto;height:17px;width:17px}.auth-shell .language-chevron{transition:transform var(--transition)}.auth-shell .language-button[aria-expanded=true] .language-chevron{transform:rotate(180deg)}.auth-shell .language-popover{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 32px #0f172a1f;max-height:320px;opacity:0;overflow-y:auto;padding:6px;position:absolute;right:0;top:calc(100% + 8px);transform:translateY(-4px);transition:opacity var(--transition),transform var(--transition),visibility var(--transition);visibility:hidden;width:180px}.auth-shell .language-popover.open{opacity:1;transform:translateY(0);visibility:visible}.auth-shell .language-option{align-items:center;background:transparent;border:0;border-radius:8px;color:var(--text-secondary);cursor:pointer;display:flex;height:36px;justify-content:space-between;padding:0 10px;text-align:left;width:100%}.auth-shell .language-option:hover{background:#f3f4f6}.auth-shell .language-option.active{background:var(--primary-soft);color:var(--primary);font-weight:700}.auth-shell .main{display:grid;isolation:isolate;padding:48px 24px 56px;place-items:center;position:relative}.auth-shell .main:after,.auth-shell .main:before{border-radius:999px;content:"";filter:blur(2px);pointer-events:none;position:absolute;z-index:-2}.auth-shell .main:before{background:radial-gradient(circle,color-mix(in srgb,var(--primary) 15%,transparent) 0,color-mix(in srgb,var(--primary) 4%,transparent) 56%,transparent 72%);bottom:-260px;height:560px;left:-260px;width:560px}.auth-shell .main:after{background:radial-gradient(circle,rgba(99,102,241,.13) 0,rgba(34,211,238,.04) 58%,transparent 72%);height:480px;right:-220px;top:-240px;width:480px}.auth-shell .pattern{background-image:linear-gradient(color-mix(in srgb,var(--primary) 3.5%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--primary) 3.5%,transparent) 1px,transparent 1px);background-size:32px 32px;top:0;right:0;bottom:0;left:0;mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 78%,transparent);-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 78%,transparent);opacity:.72;pointer-events:none;position:absolute;z-index:-1}.auth-shell .login-container{transform:translateY(-34px);width:min(452px,100%)}.auth-shell .product-brand{align-items:center;display:flex;flex-direction:column;margin-bottom:22px;text-align:center}.auth-shell .portsip-logo{display:block;height:auto;-o-object-fit:contain;object-fit:contain;width:164px}.auth-shell .page-title,.auth-shell .product-heading{color:var(--text);font-size:18px;font-weight:700;letter-spacing:-.02em;line-height:1.35;margin:10px 0 0}.auth-shell .login-card{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fffffff5;border:1px solid rgba(229,231,235,.94);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:36px;position:relative;width:100%}.auth-shell .login-header{margin-bottom:26px;text-align:center}.auth-shell .login-header h1{font-size:28px;font-weight:760;letter-spacing:-.035em;line-height:1.25;margin:0}.auth-shell .login-header p{color:var(--text-muted);margin:7px 0 0}.auth-shell .field{margin-bottom:18px}.auth-shell .field label{color:var(--text-secondary);display:inline-block;font-size:13px;font-weight:650;margin-bottom:7px}.auth-shell .helper{color:var(--text-muted);font-size:12px;line-height:1.45;margin-top:7px}.auth-shell .required{color:var(--danger);margin-left:2px}.auth-shell .input-shell{position:relative}.auth-shell .input-shell>svg{color:var(--text-soft);height:18px;left:13px;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);transition:color var(--transition);width:18px}.auth-shell .input{background:#fff;border:1px solid var(--border);border-radius:10px;color:var(--text);height:44px;outline:none;padding:0 42px;transition:border-color var(--transition),box-shadow var(--transition);width:100%}.auth-shell .input::-moz-placeholder{color:var(--text-soft)}.auth-shell .input::placeholder{color:var(--text-soft)}.auth-shell .input:hover{border-color:var(--border-strong)}.auth-shell .input:focus{border-color:color-mix(in srgb,var(--primary) 50%,#fff);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 11%,transparent)}.auth-shell .input:disabled{background:#f9fafb;color:var(--text-muted);cursor:not-allowed}.auth-shell .input-shell:focus-within>svg{color:var(--primary)}.auth-shell .password-toggle{align-items:center;background:transparent;border:0;border-radius:8px;color:var(--text-muted);cursor:pointer;display:inline-flex;height:34px;justify-content:center;position:absolute;right:8px;top:50%;transform:translateY(-50%);transition:background var(--transition),color var(--transition);width:34px}.auth-shell .password-toggle:hover{background:#f3f4f6;color:var(--text-secondary)}.auth-shell .password-toggle svg{height:18px;width:18px}.auth-shell .form-options{align-items:center;display:flex;gap:16px;justify-content:space-between;margin:4px 0 20px}.auth-shell .remember{align-items:center;color:var(--text-secondary);cursor:pointer;display:inline-flex;font-size:13px;gap:8px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.auth-shell .checkbox{accent-color:var(--primary);border:1px solid var(--border-strong);border-radius:4px;cursor:pointer;height:16px;width:16px}.auth-shell .link{color:var(--primary);cursor:pointer;font-size:13px;font-weight:650;text-decoration:none}.auth-shell .link:hover{color:var(--primary-hover);text-decoration:underline;text-underline-offset:3px}.auth-shell .tenant-link{display:inline-flex;margin-bottom:20px}.auth-shell .login-switch{display:flex;justify-content:flex-start;margin:18px 0 14px;text-align:left}.auth-shell .sign-in-button{align-items:center;background:var(--primary);border:1px solid var(--primary);border-radius:10px;box-shadow:0 8px 18px color-mix(in srgb,var(--primary) 20%,transparent);color:#fff;cursor:pointer;display:inline-flex;font-weight:700;gap:8px;height:44px;justify-content:center;transition:background var(--transition),border-color var(--transition),transform var(--transition),box-shadow var(--transition),opacity var(--transition);width:100%}.auth-shell .sign-in-button:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover);box-shadow:0 10px 22px color-mix(in srgb,var(--primary) 24%,transparent);transform:translateY(-1px)}.auth-shell .sign-in-button:active:not(:disabled){transform:translateY(0)}.auth-shell .sign-in-button:disabled{cursor:not-allowed;opacity:.65}.auth-shell .sign-in-button svg{height:17px;width:17px}.auth-shell .button-spinner{animation:authSpin .7s linear infinite;border:2px solid hsla(0,0%,100%,.45);border-radius:50%;border-top-color:#fff;height:17px;width:17px}.auth-shell .card-loading{display:flex;justify-content:center;padding:32px 0}.auth-shell .card-spinner{animation:authSpin .7s linear infinite;border:2px solid color-mix(in srgb,var(--primary) 25%,transparent);border-radius:50%;border-top-color:var(--primary);height:22px;width:22px}@keyframes authSpin{to{transform:rotate(1turn)}}.auth-shell .security-note{align-items:center;border-top:1px solid #f1f5f9;color:var(--text-muted);display:grid;font-size:12px;gap:11px;grid-template-columns:34px minmax(0,1fr);line-height:1.55;margin-top:22px;padding-top:20px}.auth-shell .security-note-icon{align-items:center;background:var(--primary-soft);border:1px solid #bfdbfe;border-radius:10px;color:var(--primary);display:inline-flex;height:34px;justify-content:center;width:34px}.auth-shell .security-note-icon svg{height:18px;width:18px}.auth-shell .error-message{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;color:#991b1b;display:none;font-size:13px;gap:9px;margin:0 0 18px;padding:11px 12px}.auth-shell .error-message.show{display:flex}.auth-shell .error-message svg{flex:0 0 auto;height:17px;margin-top:1px;width:17px}.auth-shell .domain-selector{margin-bottom:22px;position:relative}.auth-shell .domain-context{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#f8fafc;border:1px solid var(--border);border-radius:10px;color:var(--text);cursor:pointer;display:flex;font:inherit;gap:14px;justify-content:space-between;margin:0;padding:11px 12px;text-align:left;transition:border-color var(--transition),background var(--transition),box-shadow var(--transition);width:100%}.auth-shell .domain-context:hover{background:#f9fafb;border-color:var(--border-strong)}.auth-shell .domain-context:focus-visible{border-color:color-mix(in srgb,var(--primary) 50%,#fff);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 11%,transparent);outline:none}.auth-shell .domain-context-main{align-items:center;display:flex;gap:10px;min-width:0}.auth-shell .domain-context-icon{align-items:center;background:var(--primary-soft);border-radius:9px;color:var(--primary);display:inline-flex;flex:0 0 auto;height:34px;justify-content:center;width:34px}.auth-shell .domain-context-icon svg{height:18px;width:18px}.auth-shell .domain-context-copy{display:flex;flex-direction:column;min-width:0}.auth-shell .domain-context-label{color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.auth-shell .domain-context-value{color:var(--text);font-size:14px;font-weight:700;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-shell .domain-arrow{align-items:center;border-radius:8px;color:var(--text-muted);display:inline-flex;flex:0 0 auto;height:32px;justify-content:center;width:32px}.auth-shell .domain-arrow svg{height:18px;transition:transform var(--transition);width:18px}.auth-shell .domain-context[aria-expanded=true] .domain-arrow svg{transform:rotate(180deg)}.auth-shell .domain-menu{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 32px #0f172a24;display:none;left:0;padding:6px;position:absolute;right:0;top:calc(100% + 8px);z-index:50}.auth-shell .domain-menu.open{animation:domainMenuIn .14s ease;display:block}@keyframes domainMenuIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.auth-shell .domain-list{display:grid;gap:2px;max-height:210px;overflow-y:auto}.auth-shell .domain-option{align-items:center;border-radius:9px;color:#374151;display:grid;gap:8px;grid-template-columns:minmax(0,1fr) 32px;min-height:42px;padding:0 6px 0 12px}.auth-shell .domain-option.selected,.auth-shell .domain-option:hover{background:#f3f6fb}.auth-shell .domain-option.selected{color:var(--primary);font-weight:700}.auth-shell .domain-select-button{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;font-weight:inherit;height:100%;min-width:0;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap}.auth-shell .domain-delete-button{align-items:center;background:transparent;border:0;border-radius:8px;color:var(--text-soft);cursor:pointer;display:inline-flex;height:30px;justify-content:center;transition:color var(--transition),background var(--transition);width:30px}.auth-shell .domain-delete-button:hover{background:#fef2f2;color:var(--danger)}.auth-shell .domain-delete-button:focus-visible,.auth-shell .domain-select-button:focus-visible,.auth-shell .use-another-account:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 50%,#fff);outline-offset:1px}.auth-shell .domain-delete-button svg{height:16px;width:16px}.auth-shell .use-another-account{align-items:center;background:#fff;border:0;border-radius:0 0 8px 8px;border-top:1px solid #eef2f7;color:var(--primary);cursor:pointer;display:flex;font:inherit;font-weight:700;gap:10px;margin-top:6px;min-height:44px;padding:0 12px;text-align:left;width:100%}.auth-shell .use-another-account:hover{background:#f8fafc}.auth-shell .use-another-icon{align-items:center;display:inline-flex;height:20px;justify-content:center;width:20px}.auth-shell .use-another-icon svg{height:19px;width:19px}.auth-shell .domain-list-empty{color:var(--text-muted);font-size:12px;padding:13px 12px 10px;text-align:center}.auth-shell .sso-divider{align-items:center;color:var(--text-soft);display:flex;font-size:12px;font-weight:650;gap:12px;margin:22px 0 16px}.auth-shell .sso-divider:after,.auth-shell .sso-divider:before{background:#eef2f7;content:"";flex:1;height:1px}.auth-shell .sso-icons{align-items:center;display:flex;gap:12px;justify-content:center;margin-top:18px}.auth-shell .sso-icon-button{align-items:center;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-sm);color:#111827;cursor:pointer;display:inline-flex;height:42px;justify-content:center;padding:0;transition:background var(--transition),border-color var(--transition),box-shadow var(--transition),transform var(--transition);width:42px}.auth-shell .sso-icon-button:hover{background:#f9fafb;border-color:var(--border-strong);box-shadow:0 4px 12px #0f172a14;transform:translateY(-1px)}.auth-shell .sso-icon-button:focus-visible{border-color:color-mix(in srgb,var(--primary) 50%,#fff);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 11%,transparent);outline:none}.auth-shell .sso-icon-button svg{display:block;height:20px;width:20px}.auth-shell .reset-card{max-width:452px}.auth-shell .reset-intro{align-items:flex-start;background:color-mix(in srgb,var(--primary) 7%,#fff);border:1px solid var(--primary-soft);border-radius:12px;color:color-mix(in srgb,var(--primary) 60%,#000);display:flex;gap:12px;margin-bottom:22px;padding:14px}.auth-shell .reset-intro p{color:#475569;font-size:13px;line-height:1.55;margin:0}.auth-shell .reset-icon{align-items:center;background:var(--primary-soft);border-radius:9px;color:var(--primary);display:inline-flex;flex:0 0 auto;height:34px;justify-content:center;width:34px}.auth-shell .reset-icon svg{height:18px;width:18px}.auth-shell .password-field.has-error .input{border-color:var(--danger)}.auth-shell .password-field.has-error .input:focus{border-color:var(--danger);box-shadow:0 0 0 4px color-mix(in srgb,var(--danger) 12%,transparent)}.auth-shell .field-error{color:var(--danger);font-size:12px;line-height:1.45;margin-top:7px}.auth-shell .caps-lock-note{align-items:center;color:#92400e;display:flex;font-size:12px;font-weight:650;gap:6px;margin-top:7px}.auth-shell .expired-card{text-align:center}.auth-shell .expired-state{align-items:center;display:flex;flex-direction:column;gap:14px;margin-bottom:24px}.auth-shell .expired-state p{color:var(--text-muted);font-size:13px;line-height:1.65;margin:0}.auth-shell .expired-icon{align-items:center;background:color-mix(in srgb,var(--danger) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--danger) 24%,transparent);border-radius:16px;color:var(--danger);display:inline-flex;height:54px;justify-content:center;width:54px}.auth-shell .expired-icon svg{height:26px;width:26px}.auth-shell a.sign-in-button{text-decoration:none}.auth-shell .success-message{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;color:#166534;display:flex;font-size:13px;gap:9px;margin:0 0 18px;padding:11px 12px}.auth-shell .success-message svg{flex:0 0 auto;height:17px;margin-top:1px;width:17px}.auth-shell .back-to-sign-in{display:flex;justify-content:center;margin-top:18px}.auth-shell .back-link{align-items:center;display:inline-flex;gap:6px;text-decoration:none}.auth-shell .back-link svg{height:16px;width:16px}.dark .auth-shell{--bg:#0f172a;--surface:#111827;--border:#334155;--border-strong:#475569;--text:#f8fafc;--text-secondary:#e2e8f0;--text-muted:#94a3b8;--text-soft:#64748b;--shadow-lg:0 20px 48px rgba(0,0,0,.34),0 4px 12px rgba(0,0,0,.24)}.dark .auth-shell .domain-menu,.dark .auth-shell .language-popover,.dark .auth-shell .login-card{background:color-mix(in srgb,var(--surface) 96%,transparent);border-color:var(--border)}.dark .auth-shell .domain-context,.dark .auth-shell .input,.dark .auth-shell .sso-icon-button,.dark .auth-shell .use-another-account{background:#0f172a;color:var(--text)}.dark .auth-shell .domain-context:hover,.dark .auth-shell .domain-option.selected,.dark .auth-shell .domain-option:hover,.dark .auth-shell .input:disabled,.dark .auth-shell .language-option:hover,.dark .auth-shell .password-toggle:hover,.dark .auth-shell .sso-icon-button:hover,.dark .auth-shell .use-another-account:hover{background:#1e293b}.dark .auth-shell .reset-intro{background:color-mix(in srgb,var(--primary) 10%,var(--surface));border-color:color-mix(in srgb,var(--primary) 30%,var(--border))}.dark .auth-shell .reset-intro p{color:#cbd5e1}.dark .auth-shell .security-note{border-top-color:var(--border)}.dark .auth-shell .error-message{background:color-mix(in srgb,var(--danger) 12%,var(--surface));border-color:color-mix(in srgb,var(--danger) 36%,var(--border));color:#fecaca}.dark .auth-shell .caps-lock-note{color:#fbbf24}.dark .auth-shell .domain-delete-button:hover{background:color-mix(in srgb,var(--danger) 18%,var(--surface))}.dark .auth-shell .use-another-account{border-top-color:var(--border)}.auth-shell .footer{align-items:center;background:var(--bg);border-top:0;color:var(--text-muted);display:flex;flex-direction:column;font-size:12px;gap:2px;justify-content:center;min-height:54px;padding:12px 24px;text-align:center}.auth-shell .footer a{color:var(--primary)}@media (max-width:560px){.auth-shell{--topbar-height:58px}.auth-shell .topbar{padding:0 14px}.auth-shell .language-button span{display:none}.auth-shell .main{padding:30px 14px 38px}.auth-shell .login-container{transform:translateY(-14px)}.auth-shell .portsip-logo{width:152px}.auth-shell .page-title,.auth-shell .product-heading{font-size:17px}.auth-shell .login-card{padding:28px 22px}.auth-shell .form-options{align-items:flex-start}.auth-shell .reset-intro{padding:12px}}@media (prefers-reduced-motion:reduce){.auth-shell *,.auth-shell :after,.auth-shell :before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
