/* ---------- Foundations ---------- */
:root {
    color-scheme: dark;
    --font-sans: "Segoe UI Variable Display", "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;

    --bg-deep: #0a0b11;
    --bg-rail: #0d0e15;
    --bg-sidebar: #141620;
    --bg-chat: #191b25;
    --bg-chat-soft: #1d1f2b;
    --bg-panel: #20222f;
    --bg-raised: #272a39;
    --bg-input: #0f1119;

    --text: #f5f3fb;
    --text-soft: #dad7e7;
    --muted: #a6a7b9;
    --dim: #74768a;
    --faint: #575968;

    --accent: #8b6dff;
    --accent-strong: #7253ec;
    --accent-soft: rgba(139, 109, 255, .14);
    --accent-glow: rgba(139, 109, 255, .38);
    --mint: #4dd4c0;
    --mint-soft: rgba(77, 212, 192, .12);
    --pink: #ff6b8a;
    --peach: #ffb066;
    --gold: #f4c96b;
    --danger: #ff647c;
    --success: #5bd6a2;

    --line: rgba(255, 255, 255, .072);
    --line-strong: rgba(255, 255, 255, .12);
    --line-bright: rgba(255, 255, 255, .18);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .22);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, .3);
    --shadow-lg: 0 36px 100px rgba(0, 0, 0, .45);
    --radius-sm: 9px;
    --radius-md: 13px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 180ms cubic-bezier(.2, .75, .25, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;
}

body.has-modal {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img,
svg {
    display: block;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

[hidden] {
    display: none !important;
}

::selection {
    background: rgba(139, 109, 255, .4);
    color: #fff;
}

:focus-visible {
    outline: 2px solid rgba(139, 109, 255, .86);
    outline-offset: 2px;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-only {
    display: none !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #3a3c4d transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #343646;
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #464859;
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ---------- Shared atoms ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ccbfff;
}

.eyebrow--muted {
    color: var(--dim);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(77, 212, 192, .1), 0 0 12px rgba(77, 212, 192, .6);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, #957aff 0%, #6c4be6 72%, #5a3bd1 100%);
    box-shadow: 0 8px 22px rgba(104, 75, 226, .38), inset 0 1px 0 rgba(255, 255, 255, .24);
    flex: none;
}

.brand-mark svg {
    width: 26px;
    height: 26px;
}

.brand-mark--large {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.brand-mark--large svg {
    width: 40px;
    height: 40px;
}

.avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--avatar, #7C5CFF);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .16));
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    user-select: none;
}

.avatar-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.avatar--xs { width: 23px; height: 23px; font-size: 8px; }
.avatar--sm { width: 32px; height: 32px; font-size: 10px; }
.avatar--md { width: 40px; height: 40px; font-size: 12px; }
.avatar--lg { width: 64px; height: 64px; font-size: 19px; }
.avatar--xl { width: 84px; height: 84px; font-size: 25px; }

.avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: none;
}

.presence-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    z-index: 2;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #5d6071;
    border: 2.5px solid var(--bg-sidebar);
    box-sizing: content-box;
}

.avatar-wrap--sm .presence-dot {
    width: 8px;
    height: 8px;
    border-width: 2px;
}

.presence-dot.is-online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(91, 214, 162, .35);
}

.presence-dot.is-idle {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(244, 201, 107, .3);
}

.presence-dot.is-dnd {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(255, 100, 124, .32);
}

.presence-dot.is-dnd::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46%;
    height: 1.5px;
    border-radius: 2px;
    background: #141620;
    transform: translate(-50%, -50%);
}

.presence-dot.is-offline {
    background: #5d6071;
    box-shadow: none;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(91, 214, 162, .5);
    flex: none;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--avatar, #7C5CFF);
    border: 2px solid #151724;
    color: #fff;
    font-size: 8.5px;
    font-weight: 750;
    margin-left: -8px;
}

.avatar-stack > span:first-child {
    margin-left: 0;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 18px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.01em;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
    white-space: nowrap;
}

.button .icon {
    width: 17px;
    height: 17px;
}

.button:not(:disabled):active {
    transform: translateY(1px);
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #9275ff 0%, #7251ee 60%, #6543df 100%);
    box-shadow: 0 10px 26px rgba(112, 79, 240, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.button--primary:hover {
    box-shadow: 0 13px 34px rgba(112, 79, 240, .42), inset 0 1px 0 rgba(255, 255, 255, .28);
    filter: brightness(1.04);
}

.button--primary:disabled {
    opacity: .55;
    box-shadow: none;
}

.button--ghost {
    color: var(--text-soft);
    background: rgba(255, 255, 255, .035);
    border-color: var(--line-strong);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
}

.button--danger {
    color: #fff;
    background: linear-gradient(135deg, #ff6b82, #d94361);
    box-shadow: 0 10px 24px rgba(217, 67, 97, .22);
}

.button--danger:hover {
    filter: brightness(1.06);
}

.button--soft-danger {
    color: #ff9bae;
    background: rgba(255, 100, 124, .1);
    border-color: rgba(255, 100, 124, .2);
}

.button--soft-danger:hover {
    background: rgba(255, 100, 124, .17);
}

.button--wide {
    width: 100%;
}

.button--small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 9px;
}

.button-spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .28);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 10px;
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
    position: relative;
    flex: none;
}

.icon-button:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.icon-button--small {
    width: 29px;
    height: 29px;
    border-radius: 8px;
}

.icon-button--small .icon {
    width: 16px;
    height: 16px;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b6a3ff;
    font-size: 12.5px;
    font-weight: 650;
    transition: color var(--transition);
}

.text-button:hover {
    color: #d2c7ff;
}

.text-button .icon {
    width: 15px;
    height: 15px;
}

.text-button--danger {
    color: #ff9bae;
}

.text-button--danger:hover {
    color: #ffc0cb;
}

/* ---------- Form fields ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .025em;
    color: var(--text-soft);
}

.field-hint {
    font-size: 11px;
    color: var(--dim);
    line-height: 1.4;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    border-radius: 11px;
    background: var(--bg-input);
    border: 1px solid var(--line-strong);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    overflow: hidden;
}

.input-wrap:focus-within {
    border-color: rgba(139, 109, 255, .68);
    box-shadow: 0 0 0 3px rgba(139, 109, 255, .12);
    background: #11131c;
}

.input-wrap.is-invalid {
    border-color: rgba(255, 100, 124, .6);
}

.input-icon {
    width: 17px;
    height: 17px;
    margin-left: 14px;
    color: #6e7085;
    flex: none;
}

.input-wrap input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px 0 10px;
    font-size: 14px;
    color: var(--text);
}

.input-wrap input::placeholder {
    color: #5f6174;
}

.password-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 100%;
    color: var(--dim);
    flex: none;
}

.password-toggle:hover {
    color: var(--text-soft);
}

.password-toggle .icon {
    width: 17px;
    height: 17px;
}

.form-error,
.form-success {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    animation: fadeUp .2s ease both;
}

.form-error {
    color: #ffb5c1;
    background: rgba(255, 100, 124, .1);
    border: 1px solid rgba(255, 100, 124, .18);
}

.form-success {
    color: #a4f0d2;
    background: rgba(91, 214, 162, .09);
    border: 1px solid rgba(91, 214, 162, .18);
}

.form-error::before,
.form-success::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    margin-top: 1px;
}

.form-error::before {
    background: rgba(255, 100, 124, .16);
}

.form-success::before {
    content: "✓";
    background: rgba(91, 214, 162, .14);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes authReveal {
    from { opacity: 0; transform: translateY(12px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authFormIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes auroraDrift {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

@keyframes bootFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes bootLoad {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(280%); }
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .55; }
    30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes floatNote {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

/* ---------- Boot screen ---------- */
.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 38%, rgba(116, 83, 236, .2), transparent 34%),
        #0b0c12;
    transition: opacity .35s ease, visibility .35s ease;
}

.boot-screen.is-leaving {
    opacity: 0;
    visibility: hidden;
}

.boot-mark {
    animation: bootFloat 2.6s ease-in-out infinite;
}

.boot-wordmark {
    margin-top: 17px;
    font-size: 22px;
    font-weight: 720;
    letter-spacing: -.04em;
}

.boot-loader {
    width: 92px;
    height: 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    margin-top: 26px;
}

.boot-loader span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #a18aff, transparent);
    animation: bootLoad 1.5s ease-in-out infinite;
}

.boot-screen p {
    margin-top: 12px;
    color: var(--dim);
    font-size: 12px;
}

/* ---------- Auth ---------- */
.auth-view {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 28px 20px;
    overflow-y: auto;
    isolation: isolate;
    background: #0a0b11;
}

.auth-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 44%, black, transparent 78%);
}

.auth-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
    z-index: -3;
    opacity: .75;
}

.auth-aurora--one {
    width: 580px;
    height: 580px;
    left: -170px;
    top: -180px;
    background: radial-gradient(circle, rgba(110, 77, 235, .36), transparent 68%);
    animation: auroraDrift 16s ease-in-out infinite alternate;
}

.auth-aurora--two {
    width: 500px;
    height: 500px;
    right: -120px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(47, 185, 168, .18), transparent 68%);
    animation: auroraDrift 20s ease-in-out infinite alternate-reverse;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1140px, 100%);
    min-height: 654px;
    max-height: 790px;
    height: calc(100dvh - 100px);
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    border-radius: 31px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    background: #151722;
    box-shadow:
        0 50px 130px rgba(0, 0, 0, .55),
        0 10px 30px rgba(0, 0, 0, .3),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: authReveal .55s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 38px 44px 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 4%, rgba(139, 109, 255, .22), transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(77, 212, 192, .09), transparent 44%),
        linear-gradient(148deg, #191b2c 0%, #121420 58%, #0f111a 100%);
    border-right: 1px solid var(--line);
}

.auth-story::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -260px;
    top: 140px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, .014),
        0 0 0 125px rgba(255, 255, 255, .01);
    pointer-events: none;
}

.auth-story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 42% 60%, transparent 0, transparent 42%, rgba(8, 9, 15, .35) 100%);
    pointer-events: none;
}

.brand-lockup {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 19px;
    font-weight: 730;
    letter-spacing: -.035em;
}

.auth-story-copy {
    position: relative;
    z-index: 2;
    margin-top: clamp(26px, 5vh, 54px);
}

.auth-story-copy h1 {
    margin-top: 15px;
    font-size: clamp(40px, 4.3vw, 55px);
    line-height: 1.01;
    letter-spacing: -.055em;
    font-weight: 680;
    max-width: 520px;
}

.auth-story-copy h1 em {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.035em;
    color: #d1c5ff;
    background: linear-gradient(100deg, #e0d6ff, #a58bff 72%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-story-lede {
    margin-top: 17px;
    max-width: 415px;
    color: #b2b0c2;
    font-size: 14.5px;
    line-height: 1.58;
}

.auth-chat-visual {
    position: relative;
    margin-top: clamp(20px, 3.4vh, 32px);
    width: min(430px, 100%);
    padding: 13px 15px 12px;
    border-radius: 16px;
    background: rgba(31, 33, 49, .72);
    border: 1px solid rgba(255, 255, 255, .085);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .045);
    backdrop-filter: blur(16px);
    transform: perspective(900px) rotateX(1.5deg) rotateY(-1deg);
}

.mini-chat-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.mini-hash {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: rgba(139, 109, 255, .12);
    color: #b6a3ff;
    flex: none;
}

.mini-hash .icon {
    width: 15px;
    height: 15px;
}

.mini-chat-head > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-chat-head strong {
    font-size: 11.5px;
    letter-spacing: .01em;
}

.mini-chat-head span:not(.mini-avatar) {
    font-size: 9.5px;
    color: var(--dim);
}

.mini-avatars {
    display: flex;
    margin-left: auto;
}

.mini-avatar {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--avatar);
    border: 2px solid #1d1f2f;
    font-size: 7.5px;
    font-weight: 750;
    color: #fff;
    flex: none;
}

.mini-avatars .mini-avatar + .mini-avatar {
    margin-left: -7px;
}

.mini-avatar--square {
    border-radius: 9px;
    border: 0;
    width: 29px;
    height: 29px;
    font-size: 9px;
}

.mini-message {
    display: flex;
    gap: 9px;
    padding-top: 12px;
}

.mini-message > div {
    min-width: 0;
}

.mini-message strong {
    font-size: 10.5px;
    margin-right: 5px;
}

.mini-message span {
    font-size: 8.5px;
    color: var(--faint);
}

.mini-message p {
    margin-top: 2px;
    color: #cac7d6;
    font-size: 10.5px;
    line-height: 1.45;
}

.mini-message p em {
    color: #d3c9ff;
    font-family: var(--font-serif);
    font-size: 11px;
}

.mini-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(139, 109, 255, .13);
    border: 1px solid rgba(139, 109, 255, .19);
    font-size: 8.5px;
}

.mini-reaction span {
    font-size: 8px;
    color: #c5baff;
}

.mini-composer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    height: 34px;
    padding: 0 6px 0 12px;
    border-radius: 9px;
    background: rgba(9, 10, 16, .44);
    border: 1px solid rgba(255, 255, 255, .055);
    color: #65677a;
    font-size: 9.5px;
}

.mini-send {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--accent-strong);
    color: #fff;
}

.mini-send .icon {
    width: 12px;
    height: 12px;
}

.auth-story-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--dim);
    font-size: 11px;
}

.auth-panel {
    position: relative;
    display: flex;
    overflow-y: auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 109, 255, .05), transparent 38%),
        linear-gradient(180deg, #181a25, #13151e);
}

.auth-panel-inner {
    width: min(402px, calc(100% - 72px));
    margin: auto;
    padding: 32px 0;
}

.auth-mobile-brand {
    display: none;
}

.invite-banner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 13px;
    margin-bottom: 16px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(139, 109, 255, .12), rgba(77, 212, 192, .055));
    border: 1px solid rgba(139, 109, 255, .2);
}

.invite-banner-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: rgba(139, 109, 255, .15);
    color: #c6b7ff;
    flex: none;
}

.invite-banner-icon .icon {
    width: 15px;
    height: 15px;
}

.invite-banner strong {
    display: block;
    font-size: 12px;
}

.invite-banner p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
    background: #0f1119;
    border: 1px solid var(--line);
    width: fit-content;
}

.auth-tab {
    height: 32px;
    padding: 0 15px;
    border-radius: 8px;
    color: var(--dim);
    font-size: 12px;
    font-weight: 650;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.auth-tab:hover {
    color: var(--text-soft);
}

.auth-tab.is-active {
    color: var(--text);
    background: #242736;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.auth-heading {
    margin: 26px 0 21px;
}

.auth-heading h2 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.04em;
    font-weight: 680;
}

.auth-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: authFormIn .22s ease both;
}

.auth-submit {
    height: 47px;
    margin-top: 3px;
}

.auth-submit .icon {
    width: 17px;
    height: 17px;
    transform: rotate(180deg);
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: var(--dim);
}

.auth-switch .text-button {
    font-size: inherit;
}

.auth-fineprint {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: #5e6072;
    font-size: 10px;
    line-height: 1.55;
}

.auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: #525464;
    font-size: 10.5px;
    letter-spacing: .01em;
}
