.workbench-login {
    color: #203348;
}

.workbench-login::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(var(--pd-accent-rgb), .14) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(var(--pd-accent-rgb), .09) 0 1.25px, transparent 1.75px);
    background-size: 144px 160px, 221px 207px;
    background-position: 12px 6px, 70px 45px;
}

.login-shell {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(1rem, 4vw, 3rem);
}

.login-layout {
    width: 100%;
    margin-inline: auto;
    border: 1px solid #dae5ef;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 48px rgba(30, 65, 97, .1);
}

.login-layout > .login-artwork-region {
    padding: 0;
}

.login-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: 510px;
    padding: 2rem;
    background: #10253b;
    color: #fff;
}

.login-artwork {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.login-visual-brand span {
    font-size: 1.625rem;
    font-weight: 700;
}

.login-visual-brand p {
    margin-top: .25rem;
    color: #e1effd;
}

.login-form-region {
    padding: clamp(1.25rem, 4vw, 3.25rem);
}

.login-form-card {
    width: 100%;
    max-width: 25rem;
    min-width: 0;
}

.login-form-heading {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.login-form-heading:has(.login-heading-copy) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .625rem;
}

.login-heading-copy {
    min-width: 0;
}

.login-form-subtitle,
.login-form-heading:not(:has(.login-form-subtitle))::after {
    margin: .375rem 0 0;
    color: #536b81;
    font-size: .875rem;
}

.login-form-heading:not(:has(.login-form-subtitle))::after {
    /* Keep the subtitle visible while an older login template is still cached. */
    display: block;
    content: "Game Publishing System · Overseas";
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form-card h1 {
    margin: 0;
    color: #17324b;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .035em;
}

.login-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: clamp(2.375rem, 5vw, 3rem);
    aspect-ratio: 1;
    border-radius: .75rem;
    background-color: var(--pd-tint-subtle);
    color: var(--login-heading-icon-color, #789ec5);
    font-size: 1.125rem;
}

.login-form-card label {
    margin-bottom: .375rem;
    font-weight: 600;
}

.login-form-card .form-control,
.login-form-card .login-submit {
    margin-top: .25rem;
    min-height: 46px;
    border-radius: .5rem;
    font-size: 1rem;
}

.login-password {
    position: relative;
}

.login-password .form-control {
    padding-right: 3rem;
}

.login-password .login-password-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    width: 42px;
    padding: 0;
    color: #536b81;
    background: transparent;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: var(--pd-accent-dark);
    background: var(--pd-tint);
}

.login-form-card .login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    font-weight: 600;
    color: #fff;
    background-color: var(--theme-action-bg);
    border-color: var(--theme-action-border);
    box-shadow: 0 3px 8px rgba(var(--pd-accent-rgb), .22);
}

:root[data-theme="dark"] .login-heading-icon {
    --login-heading-icon-color: #91b6db;
}

.login-form-card .login-submit:is(:hover, :active):not(:disabled) {
    background-color: var(--theme-action-hover-bg);
    border-color: var(--theme-action-hover-border);
}

.login-form-card .login-submit:active:not(:disabled) {
    box-shadow: none;
}

.login-form-card .login-submit:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 3px;
}

.login-form-card .login-submit:disabled {
    cursor: wait;
    opacity: 1;
    box-shadow: none;
}

.login-submit .system-loading-spinner {
    border-color: rgba(255, 255, 255, .35);
    border-top-color: currentColor;
}

.login-error {
    margin: 0;
    padding: .625rem .75rem;
    border: 1px solid #f2c8c8;
    border-radius: .5rem;
    color: #8e2f36;
    background: #fdf1f1;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .login-layout {
        max-width: 30rem;
    }
}

