:root {
    --login-bg: #08111f;
    --login-ink: #0f172a;
    --login-muted: #667085;
    --login-line: rgba(15, 23, 42, 0.11);
    --login-card: rgba(255, 255, 255, 0.88);
    --login-teal: #0f766e;
    --login-cyan: #0891b2;
    --login-orange: #f97316;
    --login-cream: #fff7ed;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.shop-login-body {
    margin: 0;
    min-height: 100vh;
    color: var(--login-ink);
    background:
        radial-gradient(circle at 6% 8%, rgba(249, 115, 22, 0.38), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(45, 212, 191, 0.34), transparent 28%),
        radial-gradient(circle at 70% 92%, rgba(14, 165, 233, 0.28), transparent 34%),
        linear-gradient(135deg, #08111f 0%, #10253c 48%, #0c4a55 100%);
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

.shop-login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.shop-login-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 36px));
    min-height: min(760px, calc(100vh - 56px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 38px;
    box-shadow: 0 32px 120px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(22px);
}

.shop-login-hero {
    position: relative;
    isolation: isolate;
    padding: 42px;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(13, 116, 128, 0.38)),
        radial-gradient(circle at 32% 28%, rgba(45, 212, 191, 0.24), transparent 32%);
}

.shop-login-hero::before {
    content: "";
    position: absolute;
    inset: 26px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
}

.shop-login-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -110px;
    top: 120px;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(from 190deg, rgba(20, 184, 166, 0), rgba(20, 184, 166, 0.62), rgba(249, 115, 22, 0.58), rgba(20, 184, 166, 0));
    filter: blur(2px);
    opacity: 0.78;
}

.shop-login-nav,
.shop-login-brand,
.shop-login-status {
    display: flex;
    align-items: center;
}

.shop-login-nav {
    justify-content: space-between;
    gap: 18px;
}

.shop-login-brand {
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.shop-login-brand span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.shop-login-brand strong {
    font-size: 25px;
    letter-spacing: -0.05em;
}

.shop-login-status {
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
}

.shop-hero-copy {
    max-width: 620px;
    margin: 70px 0 40px;
}

.shop-hero-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: #99f6e4;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 900;
}

.shop-hero-copy h1 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(46px, 5.7vw, 84px);
    line-height: 0.92;
    letter-spacing: -0.085em;
    font-weight: 950;
}

.shop-hero-copy p {
    max-width: 520px;
    margin: 26px 0 0;
    color: rgba(248, 250, 252, 0.74);
    font-size: 17px;
    line-height: 1.85;
}

.shop-hero-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shop-orbit-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.shop-orbit-card i {
    color: #99f6e4;
}

.card-a {
    right: 54px;
    top: 190px;
}

.card-b {
    right: 138px;
    top: 318px;
}

.card-c {
    right: 42px;
    bottom: 196px;
}

.shop-login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.shop-login-stats div {
    padding: 17px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.shop-login-stats strong,
.shop-login-stats span {
    display: block;
}

.shop-login-stats strong {
    font-size: 21px;
    letter-spacing: -0.05em;
}

.shop-login-stats span {
    margin-top: 5px;
    color: rgba(248, 250, 252, 0.62);
    font-size: 12px;
}

.shop-login-panel {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 251, 235, 0.91) 100%),
        var(--login-card);
}

.shop-panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.shop-panel-chip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ccfbf1;
    color: #115e59;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shop-login-panel a {
    color: #0f766e;
    font-weight: 850;
    text-decoration: none;
}

.shop-login-panel a:hover {
    color: #0e7490;
}

.shop-panel-title {
    margin-bottom: 28px;
}

.shop-panel-title h2 {
    margin: 0;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.shop-panel-title p {
    margin: 12px 0 0;
    color: var(--login-muted);
    font-size: 15px;
    line-height: 1.7;
}

.shop-login-form {
    display: grid;
    gap: 19px;
}

.shop-form-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}

.shop-input-wrap,
.shop-tenant-select-wrap {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--login-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 32px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-input-wrap:focus-within,
.shop-tenant-select-wrap:focus-within {
    border-color: rgba(15, 118, 110, 0.7);
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.14), 0 18px 42px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.shop-input-wrap > i,
.shop-tenant-select-wrap > i:first-child {
    color: var(--login-teal);
}

.shop-input-wrap .form-control,
.shop-tenant-select {
    width: 100%;
    min-height: 56px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--login-ink);
    font-weight: 750;
}

.shop-tenant-select {
    appearance: none;
    cursor: pointer;
}

.shop-tenant-select-wrap > i:last-child {
    color: #98a2b3;
    font-size: 12px;
}

.shop-field-help {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
}

.shop-password-toggle {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    color: #475467;
    background: #eef2f6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-password-toggle:hover {
    color: #0f766e;
    background: #ccfbf1;
}

.text-danger {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
}

.shop-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.shop-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #475467;
    font-weight: 750;
}

.shop-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--login-teal);
}

.shop-login-submit,
.shop-login-cancel {
    min-height: 60px;
    border: 0;
    border-radius: 20px;
    font-weight: 950;
}

.shop-login-submit {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 52%, #164e63 100%);
    box-shadow: 0 18px 38px rgba(15, 118, 110, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: transform 0.5s ease;
}

.shop-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(15, 118, 110, 0.38);
}

.shop-login-submit:hover::before {
    transform: translateX(100%);
}

.shop-login-submit span,
.shop-login-submit i {
    position: relative;
}

.shop-login-cancel {
    background: #eef2f6;
    color: #344054;
}

.shop-external-logins {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--login-line);
}

.shop-external-logins h3 {
    margin: 0 0 10px;
    color: #344054;
    font-size: 14px;
    font-weight: 900;
}

.shop-external-logins button {
    margin: 6px 6px 0 0;
    padding: 10px 14px;
    border: 1px solid var(--login-line);
    border-radius: 14px;
    background: #fff;
    color: #344054;
    font-weight: 850;
}

.shop-login-alert {
    border: 0;
    border-radius: 18px;
}

@media (max-width: 1020px) {
    .shop-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .shop-login-hero {
        min-height: 470px;
    }

    .shop-hero-copy {
        margin: 56px 0 36px;
    }
}

@media (max-width: 680px) {
    .shop-login-body {
        background: linear-gradient(160deg, #08111f 0%, #0c4a55 100%);
    }

    .shop-login-shell {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .shop-login-hero,
    .shop-login-panel {
        padding: 28px 20px;
    }

    .shop-login-hero {
        min-height: auto;
    }

    .shop-login-status,
    .shop-hero-orbit {
        display: none;
    }

    .shop-hero-copy {
        margin: 44px 0 28px;
    }

    .shop-hero-copy h1 {
        font-size: 42px;
    }

    .shop-login-stats {
        grid-template-columns: 1fr;
    }

    .shop-panel-title h2 {
        font-size: 36px;
    }

    .shop-login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
