:root{--bg:#fbfaf8;--ink:#14141a;--muted:#14141a99;--panel:#ffffffd1;--line:#0f0f1414;--brand:#0d9488;--green:#16a34a;--orange:#b45309;--shadow:0 24px 80px #0f172a1f}*{box-sizing:border-box}html,body{min-height:100%;color:var(--ink);background:var(--bg);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}.auth-shell{--bg:#fbfaf8;--surface:#fff;--surface-tint:#f3f1ec;--border:#0f0f1414;--border-strong:#0f0f1426;--text:#14141a;--text-muted:#14141a99;--text-faint:#14141a66;--accent:#0d9488;--accent-deep:#0f766e;--accent-soft:#0d94881a;--warning:#b45309;--warning-soft:#b453091a;--font-display:"Fraunces", ui-serif, Georgia, serif;--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;background:var(--bg);min-height:100dvh;color:var(--text);font-family:var(--font-sans);grid-template-columns:minmax(520px,43%) minmax(520px,1fr);gap:clamp(2rem,4vw,4.5rem);padding:1.5rem;display:grid;position:relative;overflow:hidden}.auth-shell:before,.dashboard-shell:before{content:"";z-index:0;pointer-events:none;opacity:.02;mix-blend-mode:multiply;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");position:absolute;inset:0}.auth-shell .hero-card{z-index:1;border:1px solid var(--border);background:radial-gradient(120% 120% at 100% 0%, #0d94881a, transparent 55%), radial-gradient(100% 100% at 0% 100%, #f4a26114, transparent 55%), var(--surface);color:var(--text);border-radius:28px;flex-direction:column;gap:2rem;padding:clamp(2.5rem,4vw,4rem) clamp(2.25rem,3.5vw,3.25rem);display:flex;position:relative;overflow:hidden;box-shadow:0 30px 60px -34px #14141a2e}.auth-shell .brand-pill{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);letter-spacing:.01em;border-radius:999px;align-self:flex-start;align-items:center;gap:.55rem;padding:.5rem .95rem;font-size:.78rem;font-weight:500;display:inline-flex}.auth-shell .brand-pill:before{content:"";background:var(--accent);width:6px;height:6px;box-shadow:0 0 0 3px var(--accent-soft);border-radius:50%}.auth-shell .hero-card h1{max-width:15ch;font-family:var(--font-display);letter-spacing:-.01em;color:var(--text);margin:0;font-size:clamp(2.1rem,2.4vw + 1rem,2.9rem);font-weight:600;line-height:1.16}.auth-shell .hero-card p{max-width:38ch;color:var(--text-muted);margin:0;font-size:1rem;line-height:1.7}.auth-shell .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:auto;padding-top:1.5rem;display:grid}.auth-shell .feature-grid span{border:1px solid var(--border);background:var(--surface-tint);color:var(--text-muted);border-radius:12px;align-items:center;gap:.55rem;padding:.75rem .9rem;font-size:.8rem;font-weight:500;display:flex}.auth-shell .feature-grid span:before{content:"";background:var(--accent);border-radius:50%;flex-shrink:0;width:6px;height:6px}.auth-shell .auth-panel{z-index:1;flex-direction:column;justify-content:center;align-items:center;padding:clamp(2rem,4vw,4rem);display:flex;position:relative}.auth-shell .error{background:var(--warning-soft);width:100%;max-width:560px;color:var(--warning);border:1px solid #b4530940;border-radius:14px;margin-bottom:1.25rem;padding:.85rem 1.1rem;font-size:.85rem;font-weight:500}.auth-shell .forms{flex-direction:column;gap:1.45rem;width:100%;max-width:560px;display:flex}.auth-shell .form-card{background:var(--surface);border:1px solid var(--border);border-radius:28px;flex-direction:column;padding:clamp(2.25rem,3vw,2.75rem);display:flex}.auth-shell .form-card:not(.secondary){border-color:#0d948838;box-shadow:0 30px 56px -30px #0d948852,0 2px 8px #14141a0a}.auth-shell .form-card.secondary{background:var(--surface-tint);border-color:var(--border);box-shadow:none}.auth-shell .form-card h2{font-family:var(--font-sans);letter-spacing:-.01em;color:var(--text);margin:0 0 1.35rem;font-size:1.32rem;font-weight:700}.auth-shell .form-card label{color:var(--text-faint);margin:1.05rem 0 .48rem;font-size:.86rem;font-weight:500;display:block}.auth-shell .form-card label:first-of-type{margin-top:0}.auth-shell .form-card input{border:1px solid var(--border-strong);background:var(--surface-tint);width:100%;min-height:52px;color:var(--text);border-radius:14px;padding:.9rem 1rem;font-family:inherit;font-size:.98rem;transition:border-color .15s,box-shadow .15s,background .15s}.auth-shell .form-card.secondary input{background:var(--surface)}.auth-shell .form-card input::placeholder{color:var(--text-faint)}.auth-shell .form-card input:hover{border-color:#0f0f1438}.auth-shell .form-card input:focus-visible{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 4px var(--accent-soft);outline:none}.auth-shell .form-card button{cursor:pointer;border:1px solid #0000;border-radius:14px;min-height:56px;margin-top:1.8rem;padding:1rem 1.15rem;font-size:.98rem;font-weight:600;transition:background .15s,box-shadow .15s,border-color .15s,transform .1s}.auth-shell .form-card button:active{transform:translateY(1px)}.auth-shell .form-card button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.auth-shell .form-card:not(.secondary) button{background:var(--accent);color:#fff;box-shadow:0 10px 24px -10px #0d94888c}.auth-shell .form-card:not(.secondary) button:hover{background:var(--accent-deep)}.auth-shell .form-card.secondary button{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.auth-shell .form-card.secondary button:hover{background:var(--text);border-color:var(--text);color:#fff}.dashboard-shell{--bg:#fbfaf8;--surface:#fff;--surface-tint:#f3f1ec;--border:#0f0f1414;--border-strong:#0f0f1426;--text:#14141a;--text-muted:#14141a99;--accent:#0d9488;--accent-deep:#0f766e;--accent-soft:#0d94881a;--success:#16a34a;--success-soft:#16a34a1a;--warning:#b45309;--warning-soft:#b453091a;--gmail-red:#d23c2f;--gmail-red-bg:#d23c2f14;--outlook-blue:#2563eb;--outlook-blue-bg:#2563eb14;--font-display:"Fraunces", ui-serif, Georgia, serif;--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;background:var(--bg);min-height:100dvh;color:var(--text);font-family:var(--font-sans);padding:1.75rem clamp(1.25rem,4vw,3rem) 4rem;position:relative;overflow:hidden}.dashboard-shell>*{z-index:1;max-width:1040px;margin-inline:auto;position:relative}.dashboard-shell .topbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin-bottom:1.75rem;padding-bottom:1.5rem;display:flex}.dashboard-shell .topbar>div{align-items:center;gap:.6rem;display:flex}.dashboard-shell .topbar strong{letter-spacing:-.01em;color:var(--text);font-size:1rem;font-weight:700}.dashboard-shell .topbar-actions{align-items:center;gap:.7rem;display:flex}.dashboard-shell .brand-dot{background:var(--accent);width:8px;height:8px;box-shadow:0 0 0 3px var(--accent-soft);border-radius:50%}.dashboard-shell .ghost-button{border:1px solid var(--border-strong);background:var(--surface);color:var(--text-muted);cursor:pointer;border-radius:11px;padding:.55rem 1.1rem;font-size:.82rem;font-weight:500;transition:background .15s,border-color .15s,color .15s}.dashboard-shell .ghost-button:hover{background:var(--surface-tint);color:var(--text);border-color:#0f0f143d}.dashboard-shell .ghost-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dashboard-shell .dashboard-hero{border:1px solid var(--border);background:radial-gradient(120% 140% at 100% 0%, #0d94881a, transparent 55%), radial-gradient(90% 100% at 0% 100%, #f4a26114, transparent 55%), var(--surface);color:var(--text);border-radius:24px;margin-bottom:1.5rem;padding:clamp(1.75rem,3vw,2.75rem);position:relative;overflow:hidden;box-shadow:0 24px 48px -30px #14141a29}.dashboard-shell .dashboard-hero .eyebrow{color:var(--accent-deep);letter-spacing:.05em;text-transform:uppercase;margin:0 0 .6rem;font-size:.78rem;font-weight:600}.dashboard-shell .dashboard-hero h1{font-family:var(--font-display);letter-spacing:-.01em;color:var(--text);margin:0 0 .7rem;font-size:clamp(1.7rem,1.6vw + 1rem,2.2rem);font-weight:600}.dashboard-shell .dashboard-hero p{max-width:56ch;color:var(--text-muted);margin:0;font-size:.96rem;line-height:1.7}.dashboard-shell .mail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin-bottom:1.5rem;display:grid}.dashboard-shell .mail-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;flex-direction:column;padding:1.75rem;transition:border-color .15s,transform .15s,box-shadow .15s;display:flex;box-shadow:0 1px 2px #14141a0a}.dashboard-shell .mail-card:hover{border-color:var(--border-strong);transform:translateY(-2px);box-shadow:0 20px 40px -24px #14141a33}.dashboard-shell .mail-card-head{justify-content:space-between;align-items:center;margin-bottom:1.1rem;display:flex}.dashboard-shell .mail-icon{background:var(--gmail-red-bg);width:44px;height:44px;color:var(--gmail-red);font-family:var(--font-display);border-radius:13px;justify-content:center;align-items:center;font-size:1.05rem;font-weight:600;display:flex}.dashboard-shell .mail-card:nth-of-type(2) .mail-icon{background:var(--outlook-blue-bg);color:var(--outlook-blue)}.dashboard-shell .status{border-radius:999px;padding:.38rem .8rem;font-size:.72rem;font-weight:600}.dashboard-shell .status.connected{background:var(--success-soft);color:var(--success)}.dashboard-shell .status.pending{background:var(--warning-soft);color:var(--warning)}.dashboard-shell .mail-card h2{font-family:var(--font-display);letter-spacing:-.01em;color:var(--text);margin:0 0 .5rem;font-size:1.35rem;font-weight:600}.dashboard-shell .mail-card p{color:var(--text-muted);flex:1;margin:0 0 1.5rem;font-size:.88rem;line-height:1.6}.dashboard-shell .primary-link{background:var(--accent);color:#fff;border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;padding:.78rem 1rem;font-size:.85rem;font-weight:600;text-decoration:none;transition:background .15s,box-shadow .15s,color .15s,border-color .15s;display:inline-flex;box-shadow:0 10px 22px -10px #0d948880}.dashboard-shell .primary-link:hover{background:var(--accent-deep)}.dashboard-shell .mail-card:has(.status.connected) .primary-link{background:var(--surface);border-color:var(--border-strong);color:var(--text);box-shadow:none}.dashboard-shell .mail-card:has(.status.connected) .primary-link:hover{background:var(--surface-tint);border-color:#0f0f1447}.dashboard-shell .primary-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dashboard-shell .info-panel{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:1.75rem clamp(1.5rem,3vw,2.25rem);box-shadow:0 1px 2px #14141a0a}.dashboard-shell .info-panel h2{font-family:var(--font-display);letter-spacing:-.01em;color:var(--text);margin:0 0 1.1rem;font-size:1.1rem;font-weight:600}.dashboard-shell .info-panel ul{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:flex}.dashboard-shell .info-panel li{color:var(--text-muted);align-items:flex-start;gap:.75rem;font-size:.92rem;line-height:1.55;display:flex}.dashboard-shell .info-panel li:before{content:"✓";background:var(--success-soft);width:20px;height:20px;color:var(--success);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-top:.05rem;font-size:.62rem;font-weight:700;display:flex}.dashboard-shell .info-panel li:last-child{color:var(--text);font-weight:500}.dashboard-shell .info-panel li:last-child:before{content:"✕";background:var(--accent-soft);color:var(--accent-deep)}.settings-shell{max-width:1180px}.settings-shell .settings-hero{grid-template-columns:1fr}.settings-shell .success-banner{color:#15803d;background:#16a34a1a;border:1px solid #16a34a3d;border-radius:16px;margin-bottom:1rem;padding:.95rem 1.1rem;font-size:.9rem;font-weight:700}.settings-shell .settings-panel{border:1px solid var(--border);background:var(--surface);border-radius:24px;padding:clamp(1rem,2vw,1.4rem);box-shadow:0 1px 2px #14141a0a}.settings-shell .settings-list{gap:.9rem;display:grid}.settings-shell .settings-row{border:1px solid var(--border);background:#ffffffb8;border-radius:18px;grid-template-columns:minmax(220px,1.35fr) minmax(200px,1fr) 110px minmax(330px,1.25fr);align-items:center;gap:1rem;padding:1rem;display:grid}.settings-shell .label-preview{align-items:center;gap:.8rem;display:flex}.settings-shell .label-color-dot{width:18px;height:18px;box-shadow:0 0 0 1px var(--border-strong);border:2px solid #ffffffe6;border-radius:999px}.settings-shell .label-preview strong,.settings-shell .setting-field{color:var(--text);font-size:.9rem;font-weight:700}.settings-shell .label-preview span,.settings-shell .settings-actions p{color:var(--text-muted);margin-top:.2rem;font-size:.78rem;line-height:1.45;display:block}.settings-shell .setting-field input{border:1px solid var(--border-strong);background:var(--surface-tint);width:100%;min-height:44px;color:var(--text);border-radius:12px;margin-top:.42rem;padding:.7rem .8rem}.settings-shell .color-field input{padding:.25rem}.settings-shell .toggle-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;display:grid}.settings-shell .toggle-grid label{border:1px solid var(--border);background:var(--surface-tint);min-height:44px;color:var(--text-muted);border-radius:12px;align-items:center;gap:.45rem;padding:.65rem .7rem;font-size:.78rem;font-weight:700;display:flex}.settings-shell .toggle-grid input{accent-color:var(--accent)}.settings-shell .settings-actions{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:1.5rem;margin-top:1rem;padding-top:1rem;display:flex}.settings-shell .settings-actions p{max-width:720px;margin:0}.settings-shell .settings-actions button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:14px;flex-shrink:0;min-height:48px;padding:0 1.2rem;font-weight:800;box-shadow:0 12px 26px -14px #0d9488a6}.settings-shell .settings-actions button:hover{background:var(--accent-deep)}@media (max-width:960px){.auth-shell{grid-template-columns:1fr;gap:1rem;padding:1rem}.auth-shell .hero-card{gap:1.75rem;padding:2.25rem 1.75rem}.auth-shell .hero-card h1{max-width:28ch}.auth-shell .feature-grid{margin-top:.5rem;padding-top:0}}@media (max-width:720px){.dashboard-shell .mail-grid{grid-template-columns:1fr}.dashboard-shell .topbar,.dashboard-shell .topbar-actions{flex-direction:column;align-items:flex-start}.dashboard-shell .topbar strong{font-size:.9rem}.settings-shell .settings-row,.settings-shell .settings-actions{flex-direction:column;grid-template-columns:1fr;align-items:stretch}.settings-shell .toggle-grid{grid-template-columns:1fr}}@media (max-width:540px){.auth-shell .feature-grid{grid-template-columns:1fr}.auth-shell .form-card{padding:1.5rem}}@media (prefers-reduced-motion:reduce){.auth-shell *,.dashboard-shell *{transition:none!important}}
