body.login-page {
    min-height: 100vh;
    padding: 22px 18px 28px;
    background:
        radial-gradient(circle at 16% 18%, rgba(147, 150, 255, 0.18), transparent 26%),
        radial-gradient(circle at 78% 82%, rgba(186, 254, 243, 0.18), transparent 22%),
        radial-gradient(circle at 88% 14%, rgba(255, 194, 199, 0.16), transparent 18%),
        linear-gradient(180deg, #fafbff 0%, #f5f7fb 52%, #eff3f8 100%);
}

.login-page .backdrop {
    width: 420px;
    height: 420px;
    filter: blur(96px);
    opacity: 0.92;
}

.login-page .glow-a {
    left: 6%;
    top: 10%;
}

.login-page .glow-b {
    right: 6%;
    bottom: 12%;
}

.login-shell {
    width: min(1280px, 100%);
    min-height: calc(100vh - 50px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 28px;
}

.login-topbar,
.login-bottom-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.login-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-dim) 100%);
    box-shadow: 0 16px 30px rgba(57, 57, 199, 0.18);
}

.login-brand-copy {
    display: grid;
    gap: 2px;
}

.login-brand-title {
    font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-brand-subtitle {
    color: var(--muted);
    font-size: 0.74rem;
}

.login-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.login-nav-link {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    line-height:3;
}

.login-nav-link-current {
    color: var(--primary-dim);
    background: rgba(147, 150, 255, 0.12);
}

.login-main {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.login-front-card {
    width: min(720px, 100%);
    display: grid;
    gap: 20px;
    justify-items: center;
    padding: 48px 52px 44px;
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    box-shadow:
        0 36px 90px rgba(57, 57, 199, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    text-align: center;
}

.login-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.32), transparent 24%),
        linear-gradient(135deg, #7377ff 0%, #4e54ea 48%, #3939c7 100%);
    box-shadow: 0 24px 50px rgba(70, 71, 211, 0.22);
}

.login-orb .site-icon {
    width: 4rem;
    height: 4rem;
}

.login-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
    max-width: 420px;
}

.login-copy .eyebrow {
    margin-bottom: 0;
}

.login-copy h1 {
    margin-bottom: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.96rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.login-copy .headline-copy {
    margin-bottom: 0;
    font-size: 0.84rem;
    line-height: 1.74;
}

.login-alert {
    width: min(100%, 520px);
    text-align: center;
    color: #9730ff;
}

.front-login-form {
    width: min(100%, 392px);
    display: grid;
    gap: 10px;
}

.front-login-form .field-block {
    text-align: left;
    gap: 0;
}

.login-input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px 0 15px;
    border-radius: 999px;
    background: rgba(242, 245, 249, 0.96);
    box-shadow: inset 0 0 0 1px rgba(171, 173, 175, 0.08);
}

.login-input-shell .input {
    flex: 1 1 auto;
    min-height: 52px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    font-size: 0.84rem;
}

.login-input-shell .input:focus {
    outline: none;
}

.login-input-shell .input::placeholder {
    color: rgba(89, 92, 94, 0.5);
}

.login-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: rgba(89, 92, 94, 0.7);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(171, 173, 175, 0.1);
}

.login-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    box-shadow: 0 24px 42px rgba(70, 71, 211, 0.22);
    border: 0;
}

.front-login-form .button.login-submit,
.front-login-form .button.button-primary.login-submit {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    box-shadow: 0 24px 42px rgba(70, 71, 211, 0.22);
}

.login-submit .site-icon {
    width: 1.08rem;
    height: 1.08rem;
}

.login-submit:hover,
.login-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 28px 50px rgba(70, 71, 211, 0.26);
}

.login-hint {
    width: min(100%, 392px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.64;
    text-align: center;
}

.login-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-dim) 100%);
    box-shadow: 0 12px 24px rgba(70, 71, 211, 0.16);
    flex: 0 0 auto;
}

.login-hint p {
    margin: 0;
    line-height:2;
}

.login-pillars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
}

.login-pillar {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 92px;
    color: rgba(89, 92, 94, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

.login-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.56);
    color: rgba(89, 92, 94, 0.72);
    box-shadow: inset 0 0 0 1px rgba(171, 173, 175, 0.1);
}

.login-bottom-bar {
    color: rgba(89, 92, 94, 0.68);
    font-size: 0.82rem;
}

.login-footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
    width: 100%;
}

.login-footer-links a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 760px) {
    body.login-page {
        padding: 16px 14px 24px;
    }

    .login-shell {
        gap: 18px;
        min-height: calc(100vh - 40px);
    }

    .login-topbar,
    .login-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-nav,
    .login-footer-links {
        width: 100%;
    }

    .login-front-card {
        padding: 34px 24px 30px;
        border-radius: 30px;
    }

    .login-orb {
        width: 82px;
        height: 82px;
        border-radius: 24px;
    }

    .login-copy h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .login-input-shell,
    .login-submit {
        min-height: 58px;
    }

    .login-input-shell .input {
        min-height: 58px;
        font-size: 0.9rem;
    }

    .login-hint {
        text-align: left;
        justify-content: flex-start;
    }

    .login-pillars {
        gap: 18px;
    }
}
