body.auth-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1d2e 0%, #2d2f6b 60%, #3d3585 100%);
    color: #1a1d2e;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    position: relative;
    display: flex;
    gap: 16px;
    min-height: 100vh;
    padding: 16px;
    overflow: hidden;
    isolation: isolate;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.auth-shell::before {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -120px;
    background: rgba(108, 92, 231, .45);
}

.auth-shell::after {
    width: 420px;
    height: 420px;
    bottom: -200px;
    left: 40%;
    background: rgba(238, 90, 36, .2);
}

.auth-scene {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.8s ease;
}

.auth-scene.is-ready {
    opacity: 1;
}

.auth-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 0 0 clamp(480px, 38vw, 640px);
    max-width: clamp(480px, 38vw, 640px);
    padding: 28px 40px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
    animation: authPanelIn .9s cubic-bezier(.16, 1, .3, 1) backwards;
}

.auth-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-brand {
    height: 28px;
    display: block;
}

.auth-social {
    display: flex;
    gap: 8px;
}

.auth-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1ec;
    color: #ed4622;
    font-size: 16px;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}

.auth-social a:hover {
    background: #ed4622;
    color: #fff;
    transform: translateY(-2px);
}

.auth-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 32px 0;
}

.auth-heading > *,
.auth-form > *,
.auth-panel-body > .auth-alert,
.auth-panel-body > .auth-text,
.auth-panel-body > .auth-back,
.auth-panel-body > .auth-btn {
    animation: authRise .7s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: calc(var(--auth-delay, .3s) + var(--auth-step, 0) * 70ms);
}

.auth-heading {
    --auth-delay: .15s;
}

.auth-form {
    --auth-delay: .35s;
}

.auth-panel-body > .auth-text,
.auth-panel-body > .auth-back,
.auth-panel-body > .auth-btn {
    --auth-delay: .45s;
}

.auth-heading > :nth-child(2),
.auth-form > :nth-child(2) {
    --auth-step: 1;
}

.auth-heading > :nth-child(3),
.auth-form > :nth-child(3) {
    --auth-step: 2;
}

.auth-heading > :nth-child(4),
.auth-form > :nth-child(4) {
    --auth-step: 3;
}

.auth-form > :nth-child(5) {
    --auth-step: 4;
}

.auth-panel-footer {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #8892a4;
}

.auth-panel-footer i {
    color: #d63031;
    margin: 0 2px;
}

.auth-panel-footer strong {
    color: #1a1d2e;
    font-weight: 700;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.auth-heading h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1d2e;
}

.auth-heading p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #8892a4;
}

.auth-text p {
    margin: 0 0 10px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #44475a;
}

.auth-text .auth-text-muted {
    font-size: 12.5px;
    color: #8892a4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #44475a;
    transition: color .2s;
}

.auth-form > div:focus-within .auth-label {
    color: #ed4622;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    color: #8892a4;
    pointer-events: none;
    transition: color .2s, transform .2s;
}

.auth-input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #1a1d2e;
    background: #f8f9fc;
    border: 1.5px solid #e6e9f2;
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input::placeholder {
    color: #b3bac8;
    font-weight: 400;
}

.auth-input:focus {
    outline: none;
    background: #fff;
    border-color: #ed4622;
    box-shadow: 0 0 0 4px rgba(237, 70, 34, .12);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #ed4622;
    transform: translateY(-50%) scale(1.08);
}

.auth-input.has-action {
    padding-right: 54px;
}

.auth-input-action {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    color: #8892a4;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.auth-input-action:hover {
    background: #fff1ec;
    color: #ed4622;
}

.auth-input-action i {
    transition: transform .15s ease;
}

.auth-input-action:active i {
    transform: scale(.85);
}

.auth-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #c8553d;
    transition: max-height .25s ease, margin-top .25s ease, opacity .25s ease;
}

.auth-hint.is-visible {
    max-height: 24px;
    margin-top: 8px;
    opacity: 1;
}

.auth-link {
    font-size: 13px;
    font-weight: 600;
    color: #ed4622;
    text-decoration: none;
    transition: color .2s;
}

.auth-link:hover {
    color: #c7381a;
    text-decoration: underline;
}

.auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 54px;
    margin-top: 8px;
    padding: 0 24px;
    overflow: hidden;
    isolation: isolate;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #ff8a4c, #ed4622);
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(237, 70, 34, .25);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.auth-btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    z-index: -1;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.auth-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(237, 70, 34, .35);
}

.auth-btn:hover::after {
    animation: authSheen .9s cubic-bezier(.16, 1, .3, 1);
}

.auth-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(237, 70, 34, .3);
}

.auth-btn i {
    transition: transform .2s;
}

.auth-btn:hover .bi-arrow-right {
    transform: translateX(3px);
}

.auth-btn:hover .bi-arrow-left {
    transform: translateX(-3px);
}

.auth-btn.is-loading {
    cursor: progress;
    pointer-events: none;
}

.auth-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin .7s linear infinite;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 600;
    color: #ed4622;
    text-decoration: none;
    transition: color .2s;
}

.auth-back:hover {
    color: #c7381a;
}

.auth-back i {
    transition: transform .2s;
}

.auth-back:hover i {
    transform: translateX(-3px);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: 12px;
}

.auth-panel-body > .auth-alert-danger {
    animation: authFadeIn .3s ease .2s backwards, authShake .55s cubic-bezier(.36, .07, .19, .97) .5s;
}

.auth-alert > i {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.2;
}

.auth-alert > span {
    flex: 1;
}

.auth-alert-close {
    flex-shrink: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.6;
    color: inherit;
    background: transparent;
    border: none;
    opacity: .6;
    cursor: pointer;
}

.auth-alert-close:hover {
    opacity: 1;
}

.auth-alert-danger {
    background: #fff0f0;
    color: #d63031;
}

.auth-alert-success {
    background: #eef9f6;
    color: #00866b;
}

.auth-alert-info {
    background: #f0eeff;
    color: #5a52d5;
}

.auth-alert-warning {
    background: #fff8ee;
    color: #c8553d;
}

.auth-showcase {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 32px 16px 24px;
    color: #fff;
}

.auth-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: authFadeIn .8s ease .2s backwards;
}

.auth-showcase-logo {
    height: 30px;
    display: block;
}

.auth-site-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 40px;
    transition: background .2s, border-color .2s, transform .2s;
}

.auth-site-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-2px);
}

.auth-site-link i {
    transition: transform .25s ease;
}

.auth-site-link:hover i {
    transform: translate(2px, -2px);
}

.auth-showcase-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.auth-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    animation: authRise .7s cubic-bezier(.16, 1, .3, 1) .3s backwards;
}

.auth-eyebrow i {
    color: #ff9f43;
}

.auth-hero h2 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: #fff;
}

.auth-word {
    display: inline-block;
    padding: .1em 0 .16em;
    margin: -.1em 0 -.16em;
    overflow: hidden;
    vertical-align: top;
}

.auth-word > span {
    display: inline-block;
    animation: authWordIn .9s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: calc(.35s + var(--w, 0) * 55ms);
}

.auth-accent .auth-word > span {
    background: linear-gradient(135deg, #ff9f43, #ee5a24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-mascot {
    flex-shrink: 0;
    height: 150px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35));
    animation: authRise 1s cubic-bezier(.16, 1, .3, 1) .6s backwards;
}

.auth-modules-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    animation: authFadeIn .6s ease .7s backwards;
}

.auth-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.auth-module {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    backdrop-filter: blur(8px) saturate(140%);
    transition: background .25s, border-color .25s, transform .25s;
    animation: authBlurIn .8s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: calc(.75s + var(--i, 0) * 45ms);
}

.auth-module::before,
.auth-module::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.auth-module::before {
    inset: 0;
    background: radial-gradient(220px circle at var(--mx, -500px) var(--my, -500px), rgba(255, 255, 255, .1), transparent 65%);
}

.auth-module::after {
    inset: -1px;
    padding: 1px;
    background: radial-gradient(160px circle at var(--mx, -500px) var(--my, -500px), rgba(255, 159, 67, .75), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.auth-module:hover::before,
.auth-modules-grid:hover .auth-module::after {
    opacity: 1;
}

.auth-module:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    transform: translateY(-2px);
}

.auth-module-icon {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.auth-module:hover .auth-module-icon {
    transform: scale(1.06);
}

.auth-module-text {
    position: relative;
    min-width: 0;
}

.auth-module-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.auth-module-desc {
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .6);
}

.auth-apps {
    align-self: flex-start;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    backdrop-filter: blur(8px) saturate(140%);
    animation: authRise .8s cubic-bezier(.16, 1, .3, 1) 1.25s backwards;
}

.auth-apps-text {
    max-width: 190px;
}

.auth-apps-text strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
}

.auth-apps-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.auth-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s;
}

.auth-app:hover {
    color: #fff;
    transform: translateY(-2px);
}

.auth-app-qr {
    display: block;
    width: 76px;
    height: 76px;
    padding: 6px;
    background: #fff;
    border-radius: 12px;
}

.auth-app-store {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

.auth-app-store .bi-box-arrow-up-right {
    font-size: 10px;
    color: #ff9f43;
}

@keyframes authPanelIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.985);
    }
}

@keyframes authRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes authFadeIn {
    from {
        opacity: 0;
    }
}

@keyframes authBlurIn {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(6px);
    }
}

@keyframes authWordIn {
    from {
        opacity: 0;
        transform: translateY(105%);
    }
}

@keyframes authSheen {
    to {
        transform: translateX(330%) skewX(-20deg);
    }
}

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

@keyframes authShake {
    10%, 90% {
        transform: translateX(-1px);
    }

    20%, 80% {
        transform: translateX(3px);
    }

    30%, 50%, 70% {
        transform: translateX(-5px);
    }

    40%, 60% {
        transform: translateX(5px);
    }
}

@media (max-width: 1399px) {
    .auth-hero h2 {
        font-size: 32px;
    }

    .auth-mascot {
        height: 120px;
    }
}

@media (max-width: 1199px) {
    .auth-modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-mascot {
        display: none;
    }
}

@media (min-width: 992px) and (max-height: 820px) {
    .auth-showcase-body {
        gap: 20px;
    }

    .auth-eyebrow {
        margin-bottom: 10px;
    }

    .auth-hero h2 {
        font-size: 28px;
    }

    .auth-mascot {
        height: 100px;
    }

    .auth-module {
        padding: 10px 12px;
    }

    .auth-apps {
        padding: 12px 16px;
    }

    .auth-app-qr {
        width: 64px;
        height: 64px;
    }

    .auth-panel-body {
        padding: 20px 0;
    }
}

@media (max-width: 991px) {
    .auth-scene {
        display: none;
    }

    .auth-shell {
        flex-direction: column;
    }

    .auth-panel {
        flex: none;
        max-width: none;
        min-height: calc(100vh - 32px);
    }

    .auth-showcase {
        padding: 16px 8px 24px;
    }

    .auth-showcase-body {
        flex: none;
    }

    .auth-hero h2 {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .auth-shell {
        gap: 0;
        padding: 0;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 20px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-showcase {
        padding: 32px 16px;
    }

    .auth-hero h2 {
        font-size: 24px;
    }

    .auth-heading h1 {
        font-size: 26px;
    }

    .auth-modules-grid {
        grid-template-columns: 1fr;
    }

    .auth-apps {
        align-self: stretch;
        justify-content: center;
    }

    .auth-apps-text {
        max-width: none;
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-body *,
    .auth-body *::before,
    .auth-body *::after {
        animation: none !important;
        transition: none !important;
    }

    .auth-body .auth-spinner {
        animation: authSpin 1.2s linear infinite !important;
    }
}
