:root{--bg-primary: #000000;--bg-secondary: #050505;--bg-tertiary: #0a0a0a;--bg-quaternary: #111111;--surface-card: #000000;--surface-card-soft: rgba(20, 20, 20, .5);--surface-overlay: rgba(0, 0, 0, .95);--text-primary: #ffffff;--text-secondary: #e5e5e5;--text-tertiary: #a3a3a3;--text-quaternary: #737373;--accent: #ffffff;--accent-hover: #e5e5e5;--border: #333333;--border-light: #333333;--border-subtle: #333333;--border-strong: #333333;--shadow: rgba(0, 0, 0, .8);--shadow-strong: #000000;--text-2xs: 10px;--text-xs: 11px;--text-sm: 13px;--text-md: 14px;--text-base: 15px;--text-lg: 17px;--text-xl: 18px;--text-2xl: 24px;--text-3xl: 28px;--font-normal: 400;--font-medium: 500;--font-semibold: 600;--font-bold: 700;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-6: 24px;--space-8: 32px;--space-10: 40px}[data-theme=light]{--bg-primary: #fbf9f5;--bg-secondary: #e8e8e8;--bg-tertiary: #f0f0f0;--bg-quaternary: #e5e5e5;--surface-card: #fbf9f5;--surface-card-soft: rgba(240, 240, 240, .5);--surface-overlay: rgba(251, 249, 245, .95);--text-primary: #000000;--text-secondary: #1a1a1a;--text-tertiary: #4a4a4a;--text-quaternary: #737373;--accent: #000000;--accent-hover: #1a1a1a;--border: #d0d0d0;--border-light: #d0d0d0;--border-subtle: #d0d0d0;--border-strong: #d0d0d0;--shadow: rgba(0, 0, 0, .1);--shadow-strong: rgba(0, 0, 0, .2)}*{margin:0;padding:0;box-sizing:border-box}html{background:var(--bg-primary);transition:background-color .4s ease;touch-action:pan-x pan-y}body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;touch-action:pan-x pan-y;background:var(--bg-primary);color:var(--text-primary);min-height:100vh;line-height:1.5;transition:background-color .4s ease,color .4s ease,border-color .4s ease}#root{min-height:100vh}a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover)}button:focus,input:focus,textarea:focus,select:focus{outline:2px solid var(--accent);outline-offset:2px}::selection{background:var(--accent);color:var(--bg-primary)}.auth-page{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:clamp(20px,4vh,36px) max(16px,env(safe-area-inset-right)) clamp(20px,4vh,36px) max(16px,env(safe-area-inset-left));position:relative;overflow-y:auto}.auth-background{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--bg-primary);z-index:-1}.auth-background:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(255,255,255,.03),transparent),radial-gradient(ellipse 60% 40% at 100% 0%,rgba(255,255,255,.02),transparent)}[data-theme=light] .auth-background:before{background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(0,0,0,.02),transparent),radial-gradient(ellipse 60% 40% at 100% 0%,rgba(0,0,0,.01),transparent)}.auth-theme-toggle{position:fixed;top:24px;right:24px;width:44px;height:44px;border-radius:12px;background:var(--bg-secondary);border:1px solid var(--border);color:var(--text-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;z-index:200;padding:0;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}.auth-theme-toggle:hover{border-color:var(--border-light);background:var(--bg-primary);transform:translateY(-1px)}.auth-theme-toggle:active{transform:translateY(0)}.auth-card{width:min(430px,100%);background:var(--surface-card);border:1px solid var(--border);border-radius:20px;padding:34px 36px 30px;display:flex;flex-direction:column;gap:0;box-shadow:0 24px 80px #00000047,inset 0 1px #ffffff0a}.auth-shell{width:min(430px,100%);display:flex;flex-direction:column;gap:14px}.auth-demo-banner{padding:14px 16px;border-radius:16px;background:#000;color:#fff;border:1px solid #000000;text-align:center;font-size:14px;line-height:1.45;box-shadow:0 12px 36px #0000002e}.auth-demo-banner a{display:inline-flex;align-items:center;gap:6px;color:inherit;font-weight:var(--font-semibold);text-decoration:underline;text-underline-offset:2px}[data-theme=dark] .auth-demo-banner{background:#fff;color:#000;border-color:#fff;box-shadow:0 12px 36px #00000047}[data-theme=light] .auth-card{box-shadow:0 20px 48px #00000014,inset 0 1px #ffffffb3}@media (max-height: 740px){.auth-page{align-items:flex-start}}.auth-brand-header{display:flex;align-items:center;justify-content:center;margin-bottom:12px}.auth-logo-wrap{display:flex;align-items:center;justify-content:center;height:38px;flex-shrink:0}.auth-logo{display:block;height:100%;width:auto;object-fit:contain}.auth-header{text-align:center;margin-bottom:18px}.auth-header h1{font-size:1.7rem;font-weight:var(--font-semibold);color:var(--text-primary);margin:0;letter-spacing:-.025em;line-height:1.08}.auth-header p{font-size:var(--text-base);color:var(--text-tertiary);margin:0 auto;line-height:1.4;max-width:96%}.auth-form{display:flex;flex-direction:column;align-items:center;gap:13px;margin-bottom:0}.auth-portal-select{display:flex;flex-direction:column;gap:12px;margin-bottom:22px}.auth-portal-label{font-size:12px;color:var(--text-quaternary);letter-spacing:.08em;text-transform:uppercase;text-align:center}.auth-portal-options{display:grid;grid-template-columns:1fr;gap:12px}.auth-portal-option{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;border-radius:14px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);font-size:14px;cursor:pointer;transition:all .2s ease}.auth-portal-meta{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.auth-portal-title{font-size:14px;font-weight:var(--font-semibold);color:var(--text-primary)}.auth-portal-desc{font-size:12px;color:var(--text-tertiary);text-align:left}.auth-portal-option:hover{border-color:var(--border-light);background:var(--bg-tertiary)}.auth-portal-option.is-active{border-color:var(--text-primary);box-shadow:0 0 0 2px #ffffff14}[data-theme=light] .auth-portal-option.is-active{box-shadow:0 0 0 2px #00000014}.auth-portal-domain{font-size:12px;color:var(--text-tertiary)}.auth-input-group{display:flex;flex-direction:column;gap:8px;width:100%;max-width:320px}.auth-input-wrapper{position:relative;display:flex;align-items:center;width:100%}.auth-input-wrapper input{width:100%;min-height:54px;padding:15px 18px;font-size:16px;color:#000;background:#fff;border:1px solid #e5e7eb;border-radius:14px;outline:none;transition:all .2s ease;font-weight:var(--font-medium);-webkit-appearance:none;-moz-appearance:none;appearance:none}[data-theme=dark] .auth-input-wrapper input{background:#0a0a0a;color:#fff;border-color:#333}.auth-input-wrapper input::placeholder{color:#9ca3af;font-weight:var(--font-normal)}[data-theme=dark] .auth-input-wrapper input::placeholder{color:#737373}[data-theme=light] .auth-input-wrapper input:hover:not(:focus){border-color:#9ca3af}[data-theme=dark] .auth-input-wrapper input:hover:not(:focus){border-color:#404040}.auth-input-wrapper input:focus{border-color:var(--text-primary);box-shadow:0 0 0 3px #0000001a}[data-theme=light] .auth-input-wrapper input:focus{border-color:#000;box-shadow:0 0 0 2px #0003;background:#fff}[data-theme=dark] .auth-input-wrapper input:focus{border-color:#fff;box-shadow:0 0 0 2px #ffffff4d;background:#0a0a0a}.auth-input-wrapper input:-webkit-autofill,.auth-input-wrapper input:-webkit-autofill:hover,.auth-input-wrapper input:-webkit-autofill:focus,.auth-input-wrapper input:-webkit-autofill:active{-webkit-text-fill-color:#000000;caret-color:#000;box-shadow:inset 0 0 0 1000px #fff;-webkit-box-shadow:inset 0 0 0 1000px #ffffff;border:1px solid #e5e7eb;transition:background-color 9999s ease-out 0s}[data-theme=dark] .auth-input-wrapper input:-webkit-autofill,[data-theme=dark] .auth-input-wrapper input:-webkit-autofill:hover,[data-theme=dark] .auth-input-wrapper input:-webkit-autofill:focus,[data-theme=dark] .auth-input-wrapper input:-webkit-autofill:active{-webkit-text-fill-color:#ffffff;caret-color:#fff;box-shadow:inset 0 0 0 1000px #0a0a0a;-webkit-box-shadow:inset 0 0 0 1000px #0a0a0a;border-color:#333}.auth-input-wrapper input:disabled{opacity:.6;cursor:not-allowed}.auth-error{font-size:14px;color:#ff9f8f;padding:12px 14px;margin:4px 0 0;border-radius:14px;background:#ff634726;border:1px solid rgba(255,99,71,.35)}.auth-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:320px;min-height:52px;padding:14px 24px;font-size:16px;font-weight:var(--font-semibold);color:#fff;background:#000;border:1px solid #000000;border-radius:14px;cursor:pointer;transition:all .2s ease;letter-spacing:-.01em;margin-top:0;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}[data-theme=dark] .auth-submit{background:#fff;color:#000;border-color:#fff}.auth-submit:hover:not(:disabled){background:#1a1a1a;border-color:#1a1a1a}[data-theme=dark] .auth-submit:hover:not(:disabled){background:#e5e5e5;border-color:#e5e5e5}.auth-submit:active:not(:disabled){background:#333;border-color:#333}[data-theme=dark] .auth-submit:active:not(:disabled){background:#ccc;border-color:#ccc}.auth-submit:disabled{opacity:.5;cursor:not-allowed;transform:none}.button-helper{margin-top:6px;margin-bottom:0;font-size:12px;color:var(--text-quaternary);text-align:center}.auth-divider{display:flex;align-items:center;justify-content:center;gap:12px;margin:24px auto 16px;color:var(--text-quaternary);font-size:12px;width:100%}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:var(--border)}.auth-oauth{display:flex;flex-direction:column;gap:12px;width:100%;max-width:320px;margin:0 auto}.auth-oauth-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:13px 16px;border-radius:14px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);font-size:14px;font-weight:var(--font-medium);cursor:pointer;transition:all .2s ease;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.auth-oauth-btn:hover{border-color:var(--border-light);background:var(--bg-tertiary)}.auth-oauth-badge{font-size:11px;padding:4px 8px;border-radius:999px;border:1px solid var(--border);color:var(--text-tertiary);background:transparent;white-space:nowrap}.auth-spinner{width:16px;height:16px;border-radius:999px;border:2px solid currentColor;border-top-color:transparent;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-success{text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px}.auth-success-copy{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:320px}.auth-success h1{font-size:1.7rem;font-weight:var(--font-semibold);color:var(--text-primary);margin:0 0 6px;letter-spacing:-.025em;line-height:1.08}.auth-success p{font-size:var(--text-base);color:var(--text-tertiary);line-height:1.45;margin:0 auto;text-align:center;max-width:96%}.auth-success-lead{max-width:280px}.auth-success-email{width:100%;max-width:300px;font-size:var(--text-base);color:var(--text-primary);line-height:1.35;margin:2px auto 8px;text-align:center;padding:12px 14px;border-radius:14px;border:1px solid var(--border);background:var(--bg-secondary);word-break:break-word}.auth-success-email strong{color:var(--text-primary);font-weight:var(--font-semibold)}.auth-success-hint{font-size:13px;color:var(--text-tertiary);margin-top:0;margin-bottom:0;max-width:96%}.auth-success-hint strong{color:var(--text-secondary);font-weight:var(--font-semibold)}.auth-success-note{color:var(--text-secondary)}.auth-success-actions{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}.auth-inline-loader{display:flex;justify-content:center;margin-top:20px}.auth-success .auth-form{margin-top:0;display:flex;flex-direction:column;align-items:center;gap:0;width:100%}.auth-back-btn{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:12px 18px;font-size:14px;font-weight:var(--font-medium);color:var(--text-secondary);background:transparent;border:1px solid var(--border);border-radius:12px;cursor:pointer;transition:all .2s ease;margin-top:0;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.auth-back-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.auth-error-state{text-align:center}.auth-error-state h1{font-size:var(--text-2xl);font-weight:var(--font-semibold);color:var(--text-primary);margin:0 0 var(--space-4) 0}.auth-error-state p{font-size:var(--text-base);color:#ef4444;margin:0 0 var(--space-6) 0}.auth-footer{margin-top:auto;padding-top:28px;text-align:center}.auth-footer p{font-size:11px;color:var(--text-quaternary);margin:0;line-height:1.6}.auth-footer-line,.auth-footer-links{display:block}.auth-footer-links{margin-top:2px}.auth-footer a{color:var(--text-secondary);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;transition:color .2s ease;font-weight:var(--font-medium)}.auth-footer a:hover{color:var(--text-primary);text-decoration-thickness:1.5px}@media (max-width: 640px){.auth-page{padding:max(16px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));align-items:center;min-height:100dvh}.auth-card{width:min(100%,390px);min-height:auto;margin-top:24px;border-radius:22px;padding:26px 18px 18px}.auth-shell{width:min(100%,390px);gap:12px}.auth-demo-banner{padding:12px 14px;border-radius:14px;font-size:13px}.auth-theme-toggle{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:36px;height:36px;border-radius:10px}.auth-brand-header{margin-bottom:10px}.auth-logo-wrap{height:30px}.auth-header{margin-bottom:14px}.auth-header h1,.auth-success h1{font-size:1.58rem}.auth-success{gap:16px}.auth-success-copy{gap:7px;max-width:100%}.auth-header p,.auth-success p,.auth-success-email,.auth-success-hint{max-width:100%}.auth-success-email{max-width:100%;padding:11px 12px;margin-bottom:6px}.auth-success-actions{gap:10px}.auth-portal-select{margin-bottom:14px}.auth-portal-options{gap:10px}.auth-portal-option{align-items:flex-start;flex-direction:column}.auth-portal-domain,.auth-oauth-badge{align-self:flex-start}.auth-input-group,.auth-submit,.auth-oauth{max-width:100%}.auth-input-wrapper input,.auth-submit,.auth-oauth-btn{min-height:50px}.auth-input-wrapper input{padding:14px 16px}.auth-form{gap:11px}.button-helper{margin-top:2px;font-size:11px}.auth-divider{margin:16px auto 12px}.auth-oauth{gap:10px}.auth-oauth-btn{padding:12px 14px;align-items:center;gap:10px}.auth-oauth-badge{font-size:10px;padding:3px 8px}.auth-footer{margin-top:16px;padding-top:16px}.auth-footer p{font-size:11px;line-height:1.5;max-width:280px;margin:0 auto}}
