@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

:root {
    --font-sans: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    --teal-950: #043f3b;
    --teal-900: #064e49;
    --teal-800: #075b55;
    --green: #20b86a;
    --green-dark: #098b4d;
    --ink: #152420;
    --muted: #6d7b77;
    --line: #dde6e3;
    --soft: #f5f8f7;
    --blue: #1265dc;
    --white: #fff;
    --shadow: 0 24px 55px rgba(1, 47, 43, .25);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background: #f8faf9;
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(580px, 1fr) minmax(650px, 1.14fr);
    overflow: hidden;
}

.brand-panel {
    position: relative;
    min-height: 100vh;
    padding: clamp(34px, 4.2vw, 66px) clamp(34px, 4.4vw, 72px) 40px;
    color: #fff;
    background:
        radial-gradient(circle at 62% 54%, rgba(27, 154, 124, .14), transparent 25%),
        linear-gradient(145deg, #075b55 0%, #064e49 58%, #03453f 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brand-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image: radial-gradient(rgba(56, 212, 159, .65) 1.3px, transparent 1.3px);
    background-size: 15px 15px;
    clip-path: polygon(59% 0, 100% 0, 100% 38%, 77% 28%, 72% 83%, 0 100%, 0 86%, 52% 73%);
}

.brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 17px;
    width: max-content;
    color: #fff;
    font-size: clamp(29px, 2.4vw, 40px);
    line-height: 1;
    font-weight: 750;
    letter-spacing: -.045em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 72px; height: 48px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; top: 0; width: 22px; height: 48px; border-radius: 7px 7px 12px 12px; background: #fff; transform: skew(-27deg); }
.brand-mark i:nth-child(1) { left: 4px; }
.brand-mark i:nth-child(2) { left: 26px; transform: skew(27deg); }
.brand-mark i:nth-child(3) { left: 47px; }

.brand-copy { position: relative; z-index: 2; margin-top: clamp(54px, 7vh, 104px); }
.brand-copy .eyebrow { margin: 0 0 14px; color: #45d887; font-weight: 750; letter-spacing: .09em; font-size: clamp(12px, .95vw, 15px); }
.brand-copy h1 { margin: 0; font-size: clamp(38px, 3.2vw, 56px); line-height: 1.13; letter-spacing: -.045em; font-weight: 760; }
.brand-copy > p:last-child { margin: 17px 0 0; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.16vw, 19px); line-height: 1.55; }

.product-preview { position: relative; z-index: 2; width: min(89%, 720px); margin-top: clamp(28px, 4.8vh, 54px); }
.inbox-preview { overflow: hidden; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.preview-head { height: 55px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0ef; }
.preview-head strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.count-badge { min-width: 25px; height: 25px; border-radius: 20px; display: grid; place-items: center; color: #098a4d; background: #d9f5e4; font-weight: 750; font-size: 12px; box-shadow: 0 0 0 4px #f0fbf4; }
.preview-tabs { height: 42px; display: flex; gap: 32px; align-items: end; padding: 0 18px; color: #66736f; font-size: 11px; border-bottom: 1px solid #e7ebe9; }
.preview-tabs span, .preview-tabs b { padding: 0 0 12px; font-weight: 500; }
.preview-tabs b { color: #0b9955; border-bottom: 2px solid #12a75c; }
.preview-body { height: 280px; display: grid; grid-template-columns: 48% 52%; }
.conversation-list { border-right: 1px solid #e7ebe9; background: #fbfcfc; }
.conversation { width: 100%; height: 70px; padding: 10px 14px; border: 0; border-bottom: 1px solid #edf0ef; text-align: left; background: transparent; display: grid; grid-template-columns: 39px 1fr 18px; align-items: center; gap: 10px; color: var(--ink); }
.conversation.active { background: linear-gradient(90deg, #edfff4, #f7fff9); }
.conversation strong { display: block; font-size: 11px; }
.conversation small { display: block; margin-top: 5px; color: #64736f; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation em { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #08a555; font-style: normal; font-size: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 10px; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.avatar-riya { background: linear-gradient(145deg, #c27255, #5c3027); }
.avatar-rohan { background: linear-gradient(145deg, #436c88, #193044); }
.avatar-neha { background: linear-gradient(145deg, #a16596, #57354e); }
.avatar-aman { background: linear-gradient(145deg, #7e8c4a, #3d4a26); }
.chat-preview { position: relative; padding: 0 17px 16px; background-color: #f8f5ef; background-image: radial-gradient(#d9ddd7 .6px, transparent .6px); background-size: 9px 9px; }
.chat-person { height: 55px; margin: 0 -17px 14px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #e8ebe9; font-size: 11px; }
.chat-person .avatar { width: 28px; height: 28px; }
.chat-person > span:last-child { margin-left: auto; padding: 3px 9px; border-radius: 12px; color: #168b51; background: #dbf5e5; }
.bubble { position: relative; width: 74%; margin-bottom: 14px; padding: 11px 12px 22px; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 10px; line-height: 1.45; }
.bubble.outgoing { margin-left: auto; background: #d8f6d1; }
.bubble small { position: absolute; right: 8px; bottom: 6px; color: #6d7d76; font-size: 7px; }
.reply-time { position: absolute; left: 18px; bottom: 17px; display: flex; align-items: center; gap: 10px; font-size: 9px; }
.reply-time b { color: #159050; }
.avatar-stack { display: flex; }
.avatar-stack i { width: 23px; height: 23px; margin-left: -4px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #436c88; font-size: 6px; font-style: normal; }
.stat-float { position: absolute; right: -110px; width: 104px; padding: 14px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); box-shadow: 0 12px 28px rgba(0,0,0,.16); display: grid; grid-template-columns: 22px 1fr; color: #fff; }
.stat-float svg { grid-row: 1 / 3; color: #68efac; }
.stat-float strong { font-size: 21px; line-height: 1; }
.stat-float span { grid-column: 2; margin-top: 5px; font-size: 10px; line-height: 1.2; color: rgba(255,255,255,.83); }
.stat-one { top: 58px; }
.stat-two { top: 158px; }

.setup-card { width: 100%; min-height: 320px; border-radius: 12px; display: grid; grid-template-columns: 54% 46%; overflow: hidden; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.setup-progress { padding: 30px 31px; border-right: 1px solid #e4e9e7; }
.setup-progress h3, .ready-card h3 { margin: 0 0 27px; font-size: 17px; }
.setup-step { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; min-height: 74px; }
.setup-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; width: 1px; height: 44px; background: #cad4d1; }
.setup-step b { width: 29px; height: 29px; border: 1.5px solid #b9c7c3; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 12px; }
.setup-step.done b { color: #fff; border-color: #0b9853; background: #0b9853; }
.setup-step.current b { color: #087c45; border-color: #0b9853; background: #edfff4; }
.setup-step strong { display: block; margin-top: 5px; font-size: 12px; }
.setup-step small { display: block; margin-top: 6px; color: #71807c; font-size: 10px; }
.ready-card { padding: 43px 34px; text-align: center; background: linear-gradient(135deg, #fbfffc, #f1f8f5); }
.ready-check { width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #0e9955; box-shadow: 0 0 0 8px #e6f8ed; }
.ready-card h3 { margin-bottom: 8px; }
.ready-card p { margin: 0 0 19px; color: #66736f; font-size: 11px; line-height: 1.5; }
.ready-card > span:not(.ready-check) { width: 130px; margin: 8px auto 0; padding: 7px 10px; border: 1px solid #d5e5de; border-radius: 6px; display: flex; align-items: center; gap: 8px; color: #31524a; background: #fff; font-size: 10px; text-align: left; }
.ready-card > span svg { color: #0b9955; }

.brand-footer { position: relative; z-index: 2; margin-top: auto; padding-top: 30px; }
.social-proof { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.92); font-size: 14px; }
.proof-avatars { display: flex; }
.proof-avatars i { width: 31px; height: 31px; margin-left: -5px; display: grid; place-items: center; border: 2px solid #e5fff1; border-radius: 50%; color: #fff; background: #547469; font-size: 8px; font-style: normal; }
.proof-avatars i:nth-child(2) { background: #9a6a5b; }
.proof-avatars i:nth-child(3) { background: #4c6f8d; }
.proof-avatars i:nth-child(4) { background: #76577b; }
.proof-avatars i:nth-child(5) { background: #718047; }
.trust-row { margin-top: 22px; display: flex; align-items: center; gap: clamp(20px, 3vw, 50px); color: rgba(255,255,255,.9); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 9px; }
.trust-row span + span { position: relative; }
.trust-row span + span::before { content: ""; position: absolute; left: clamp(-26px, -1.5vw, -12px); height: 26px; width: 1px; background: rgba(255,255,255,.25); }
.trust-row svg { width: 22px; height: 22px; color: #48dd8e; }

.form-panel {
    position: relative;
    min-height: 100vh;
    padding: 38px clamp(42px, 7.5vw, 124px);
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(6,78,73,.025), transparent 25%),
        #fbfcfb;
}
.top-link { position: absolute; top: 38px; right: clamp(36px, 4.5vw, 76px); color: #5d6a67; font-size: 13px; }
.top-link a, .top-link button { margin-left: 4px; border: 0; padding: 0; color: var(--blue); background: none; }
.top-link span { margin-left: 6px; font-size: 20px; color: #51625c; }
.auth-view { width: min(100%, 455px); }
.register-view { width: min(100%, 500px); }
.auth-heading { margin-bottom: 30px; text-align: center; }
.auth-heading h2 { margin: 0 0 10px; font-size: clamp(30px, 2.3vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.auth-heading p { margin: 0; color: #586662; font-size: 14px; }
.social-button { width: 100%; height: 58px; border: 1px solid #cbd5d2; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #101917; background: #fff; font-size: 17px; font-weight: 650; transition: border-color .2s, box-shadow .2s, transform .2s; }
.social-button:hover { border-color: #9eb2ac; box-shadow: 0 7px 20px rgba(19,52,44,.08); transform: translateY(-1px); }
.google-g { font-family: Arial, sans-serif; font-size: 24px; font-weight: 900; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 42%, #fbbc05 0 66%, #ea4335 0 83%, #4285f4 0); color: transparent; -webkit-background-clip: text; background-clip: text; }
.recommended { margin: 15px 0 31px; color: #64716e; font-size: 12px; text-align: center; }
.divider { height: 28px; display: flex; align-items: center; gap: 20px; color: #5d6a67; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #dce3e1; }
.divider span { white-space: nowrap; }
form { margin-top: 22px; }
.login-error {
    position: relative;
    margin: 0 0 18px;
    padding: 13px 38px 13px 13px;
    border: 1px solid #f0b9b9;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 11px;
    color: #7f2525;
    background: linear-gradient(100deg, #fff6f6, #fffafa);
    box-shadow: 0 7px 18px rgba(152, 39, 39, .07);
    animation: error-enter .3s cubic-bezier(.2, .85, .3, 1), error-shake .38s ease .05s;
}
.login-error::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #d94b4b;
}
.login-error-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #c73b3b;
    background: #ffe2e2;
}
.login-error-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.login-error strong, .login-error small, .login-error em { display: block; }
.login-error strong { margin: 1px 0 4px; color: #8d2626; font-size: 12px; }
.login-error small { color: #a13a3a; font-size: 11px; line-height: 1.4; }
.login-error em { margin-top: 4px; color: #a76b6b; font-size: 9px; font-style: normal; }
.login-error-close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    color: #a95a5a;
    background: transparent;
    font-size: 18px;
    line-height: 1;
}
.login-error-close:hover { color: #7f2525; background: #ffe8e8; }
.login-view.credentials-error .field .input-wrap { border-color: #e19898; background: #fffafa; }
.login-view.credentials-error .field .input-wrap:focus-within { border-color: #15925a; background: #fff; box-shadow: 0 0 0 4px rgba(32,184,106,.11); }
@keyframes error-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes error-shake { 0%, 100% { translate: 0; } 25% { translate: -4px; } 50% { translate: 4px; } 75% { translate: -2px; } }
.field { display: block; margin-bottom: 18px; }
.field > span:first-child { display: block; margin-bottom: 8px; color: #1c2b27; font-size: 13px; font-weight: 620; }
.label-row { display: flex !important; justify-content: space-between; align-items: center; }
.label-row a { font-weight: 500; }
.input-wrap { position: relative; height: 56px; border: 1px solid #cfd9d6; border-radius: 7px; display: flex; align-items: center; background: #fff; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: #15925a; box-shadow: 0 0 0 4px rgba(32,184,106,.11); }
.input-wrap > svg { flex: 0 0 auto; margin-left: 16px; color: #53645f; }
.input-wrap input { min-width: 0; height: 100%; flex: 1; padding: 0 15px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.input-wrap input::placeholder { color: #899692; }
.field.invalid .input-wrap { border-color: #dc5757; box-shadow: 0 0 0 3px rgba(220,87,87,.09); }
.field-error { display: block; min-height: 0; margin-top: 5px; color: #c63f3f; font-size: 11px; }
.icon-button { width: 48px; height: 100%; border: 0; display: grid; place-items: center; color: #5e6e69; background: transparent; }
.icon-button:hover { color: #0d6f50; }
.checkbox { width: max-content; margin: 3px 0 24px; display: flex; align-items: center; gap: 10px; color: #596864; font-size: 13px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox i { width: 19px; height: 19px; border: 1.5px solid #b8c5c1; border-radius: 4px; display: grid; place-items: center; color: transparent; background: #fff; }
.checkbox i svg { width: 14px; height: 14px; stroke-width: 2.5; }
.checkbox input:checked + i { color: #fff; border-color: #0c9251; background: #0c9251; }
.primary-button { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: 59px; border: 0; border-radius: 7px; display: flex; justify-content: center; align-items: center; gap: 22px; color: #fff; background: linear-gradient(90deg, #075b55, #005c54); box-shadow: 0 8px 17px rgba(6,78,73,.16), 0 0 0 1px rgba(0,68,62,.3); font-size: 16px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(6,78,73,.22), 0 0 0 1px rgba(0,68,62,.3); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { transition: transform .2s; }
.primary-button:hover svg { transform: translateX(4px); }
.shine-button::before { content: ""; position: absolute; z-index: -1; inset: -70% auto -70% -45%; width: 28%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), rgba(255,255,255,.08), transparent); animation: shine 4.4s ease-in-out infinite; }
.shine-button::after { content: ""; position: absolute; z-index: -2; inset: auto 10% -9px; height: 17px; border-radius: 50%; background: rgba(31,205,115,.2); filter: blur(12px); }
@keyframes shine { 0%, 58% { left: -45%; } 82%, 100% { left: 125%; } }
.switch-prompt { margin: 24px 0 34px; text-align: center; color: #596864; font-size: 13px; }
.switch-prompt button { border: 0; padding: 0; color: var(--blue); background: none; }
.auth-links { display: flex; justify-content: center; gap: 35px; padding: 0 0 25px; border-bottom: 1px solid #e1e7e5; font-size: 12px; }
.security-note { margin: 20px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #76827f; font-size: 11px; }
.security-note svg { width: 21px; height: 21px; }

.stepper { margin: 0 auto 33px; display: grid; grid-template-columns: 55px 1fr 55px 1fr 65px; align-items: start; color: #65726e; }
.stepper span { display: grid; justify-items: center; gap: 7px; font-size: 11px; }
.stepper b { width: 29px; height: 29px; border: 1px solid #aab8b4; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 12px; }
.stepper .active { color: var(--ink); }
.stepper .active b { color: #fff; border-color: #0b8f50; background: #0b8f50; box-shadow: 0 0 0 5px #e9f8ef; }
.stepper i { height: 1px; margin-top: 14px; background: #cbd5d2; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.password-rules { margin: -7px 0 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.password-rules span { padding: 8px 5px; border: 1px solid #d9e1df; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #697672; background: #fafcfb; font-size: 10px; white-space: nowrap; }
.password-rules i { width: 15px; height: 15px; border: 1px solid #9eb0aa; border-radius: 50%; display: grid; place-items: center; color: transparent; }
.password-rules svg { width: 10px; height: 10px; stroke-width: 2.5; }
.password-rules span.valid { color: #0a7e47; border-color: #b8e3c9; background: #f1fcf5; }
.password-rules span.valid i { color: #fff; border-color: #139255; background: #139255; }
.terms-check { margin-top: -2px; white-space: nowrap; }
.terms-check a { position: relative; z-index: 1; }
.register-view form { margin-top: 18px; }
.register-view .field { margin-bottom: 13px; }
.register-view .input-wrap { height: 49px; }
.register-view .primary-button { height: 56px; }
.register-view .recommended { margin-bottom: 21px; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; min-width: 290px; max-width: calc(100vw - 40px); padding: 14px 20px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; color: #fff; background: #123f39; box-shadow: 0 18px 40px rgba(1,32,28,.24); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.success-modal {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 35, 32, .52);
    backdrop-filter: blur(7px);
    animation: success-fade .32s ease both;
}
.success-card {
    position: relative;
    width: min(100%, 430px);
    padding: 42px 40px 31px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 17px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0, rgba(32,184,106,.1), transparent 34%),
        #fff;
    box-shadow: 0 32px 90px rgba(1, 36, 32, .27);
    animation: success-rise .42s cubic-bezier(.16, 1, .3, 1) both;
}
.success-card::before {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #20b86a, transparent);
}
.success-icon {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
}
.success-icon > span {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #20b86a, #098d4f);
    box-shadow: 0 12px 28px rgba(19, 160, 87, .28), 0 0 0 9px #e8f9ef;
    animation: success-pop .55s cubic-bezier(.17, .89, .32, 1.49) .1s both;
}
.success-icon svg { width: 30px; height: 30px; stroke-width: 2.6; }
.success-icon i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #50d88f;
    animation: success-dot .7s ease .22s both;
}
.success-icon i:nth-child(2) { left: 1px; top: 22px; }
.success-icon i:nth-child(3) { right: 0; top: 15px; animation-delay: .3s; }
.success-icon i:nth-child(4) { right: 7px; bottom: 8px; width: 5px; height: 5px; animation-delay: .38s; }
.success-eyebrow { margin: 0 0 8px; color: #129356; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.success-card h2 { margin: 0; color: #14231f; font-size: 27px; letter-spacing: -.035em; }
.success-card > p:not(.success-eyebrow) { max-width: 315px; margin: 11px auto 22px; color: #64736f; font-size: 13px; line-height: 1.6; }
.success-user {
    margin: 0 auto 21px;
    padding: 10px 13px;
    border: 1px solid #e1e9e6;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    background: #f8fbfa;
}
.success-user > b {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #0a8177, #075b55);
    font-size: 11px;
}
.success-user strong, .success-user small { display: block; }
.success-user strong { color: #253631; font-size: 12px; }
.success-user small { margin-top: 3px; color: #7a8884; font-size: 10px; }
.redirect-status { display: flex; align-items: center; justify-content: center; gap: 9px; color: #5e6e69; font-size: 11px; }
.redirect-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #d8e5df;
    border-top-color: #159b58;
    border-radius: 50%;
    animation: redirect-spin .8s linear infinite;
}
.redirect-progress { position: relative; height: 3px; margin-top: 24px; overflow: hidden; border-radius: 4px; background: #e8efec; }
.redirect-progress i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #0b8f50, #35cf7d); animation: redirect-fill 1.45s ease-out forwards; }
@keyframes success-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes success-rise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes success-pop { from { opacity: 0; transform: scale(.45) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes success-dot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes redirect-spin { to { transform: rotate(360deg); } }
@keyframes redirect-fill { to { width: 100%; } }

@media (max-width: 1180px) {
    .auth-shell { grid-template-columns: minmax(430px, .9fr) minmax(560px, 1.1fr); }
    .brand-panel { padding-inline: 38px; }
    .brand-copy h1 { font-size: 40px; }
    .product-preview { width: calc(100% - 52px); }
    .stat-float { right: -65px; transform: scale(.86); }
    .conversation-list { display: none; }
    .preview-body { grid-template-columns: 1fr; }
    .setup-card { grid-template-columns: 1fr; }
    .ready-card { display: none; }
    .setup-progress { border: 0; }
}

@media (max-width: 860px) {
    .auth-shell { display: block; }
    .brand-panel { min-height: auto; padding: 24px 24px 35px; }
    .brand-grid { opacity: .15; }
    .brand { transform: scale(.74); transform-origin: left top; }
    .brand-copy { margin-top: 22px; }
    .brand-copy h1 { font-size: clamp(32px, 9vw, 44px); }
    .brand-copy > p:last-child { font-size: 14px; }
    .product-preview { display: none; }
    .brand-footer { padding-top: 35px; }
    .social-proof { font-size: 12px; }
    .trust-row { gap: 24px; font-size: 11px; flex-wrap: wrap; }
    .trust-row span + span::before { display: none; }
    .form-panel { min-height: 680px; padding: 95px 24px 50px; display: block; }
    .auth-view, .register-view { margin-inline: auto; }
    .top-link { top: 28px; right: 24px; }
}

@media (max-width: 520px) {
    .brand-panel { padding-bottom: 25px; }
    .brand-copy h1 { font-size: clamp(28px, 8vw, 32px); line-height: 1.18; }
    .brand-copy > p:last-child { font-size: 13px; }
    .brand-footer { display: none; }
    .form-panel { padding-inline: 18px; overflow: hidden; }
    .top-link { right: 18px; max-width: calc(100vw - 36px); overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
    .auth-view, .register-view { width: calc(100vw - 36px); max-width: calc(100vw - 36px); }
    .social-button, .input-wrap, .primary-button { max-width: 100%; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .password-rules { grid-template-columns: 1fr; }
    .password-rules span { justify-content: flex-start; padding-left: 12px; }
    .terms-check { align-items: flex-start; white-space: normal; line-height: 1.5; }
    .stepper { grid-template-columns: 49px 1fr 49px 1fr 62px; }
    .success-card { padding: 36px 24px 27px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
