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;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    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-panel {
    position: relative;
    z-index: 1;
    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: fadeUp .5s ease 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-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;
}

.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;
}

.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;
}

.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-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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 54px;
    margin-top: 8px;
    padding: 0 24px;
    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:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(237, 70, 34, .35);
}

.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-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-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: 1;
    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;
}

.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-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;
}

.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-hero h2 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));
}

.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);
}

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

.auth-module {
    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;
    transition: background .2s, border-color .2s, transform .2s;
    animation: fadeUp .4s ease backwards;
    animation-delay: calc(.1s + var(--i, 0) * .04s);
}

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

.auth-module-icon {
    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);
}

.auth-module-text {
    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;
}

.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;
}

@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-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-panel,
    .auth-module {
        animation: none;
    }
}
