:root {
    color-scheme: light;
}

html.desktop-auth-html,
body.desktop-auth-body {
    min-width: 1000px;
    min-height: 100%;
    margin: 0;
}

body.desktop-auth-body {
    --auth-primary: #62686f;
    --auth-primary-hover: #53585e;
    --auth-soft: #f3f4f5;
    --auth-soft-hover: #e7e9eb;
    --auth-focus: rgba(98, 104, 111, .16);
    --auth-disabled-bg: #f4f5f7;
    --auth-disabled-border: #d9dde2;
    --auth-disabled-text: #a5abb3;
    padding: 0 !important;
    background: #f1f4f7;
    color: #2f3338;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.desktop-auth-body * {
    box-sizing: border-box;
}

.desktop-auth-shell {
    min-height: 100vh;
}

.desktop-auth-topbar {
    height: 140px;
    background: var(--auth-header-bg);
    border-bottom: 1px solid var(--auth-header-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.desktop-auth-topbar-inner {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-auth-brand {
    display: block;
    color: var(--auth-header-text);
    text-decoration: none;
}

.desktop-auth-brand:hover,
.desktop-auth-brand:focus {
    color: var(--auth-header-text);
    text-decoration: none;
}

.desktop-auth-brand-logo {
    display: block;
    width: 900px;
    height: 140px;
}

.desktop-auth-home {
    padding: 12px 4px;
    color: var(--auth-header-text);
    font-size: 17px;
    text-decoration: none;
}

.desktop-auth-home:hover,
.desktop-auth-home:focus {
    color: var(--auth-header-text);
    text-decoration: none;
    opacity: .8;
}

.desktop-auth-main {
    min-height: calc(100vh - 140px);
    padding: 64px 0 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.desktop-auth-card {
    width: 520px;
    padding: 42px 58px 48px;
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
    border-top: 3px solid var(--auth-primary);
}

.desktop-auth-heading {
    margin-bottom: 32px;
    text-align: center;
}

.desktop-auth-heading h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--auth-primary);
}

.desktop-auth-heading p {
    margin: 0;
    color: #7a828c;
    font-size: 14px;
    line-height: 1.6;
}

.desktop-auth-field {
    margin-bottom: 24px;
}

.desktop-auth-field > label {
    display: block;
    margin-bottom: 9px;
    font-size: 16px;
    font-weight: 600;
}

.desktop-auth-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cfd5dc;
    border-radius: 4px;
    background: #fff;
    color: #2f3338;
    font-size: 16px;
    outline: none;
}

.desktop-auth-field input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-focus);
}

.desktop-auth-field input:-webkit-autofill,
.desktop-auth-field input:-webkit-autofill:hover,
.desktop-auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #2f3338;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out 0s;
}

.desktop-auth-code-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
}

.desktop-auth-code-btn {
    height: 48px;
    border: 1px solid var(--auth-primary);
    border-radius: 4px;
    background: var(--auth-soft);
    color: var(--auth-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.desktop-auth-code-btn:hover:not(:disabled),
.desktop-auth-code-btn:focus:not(:disabled) {
    border-color: var(--auth-primary-hover);
    background: var(--auth-soft-hover);
    color: var(--auth-primary-hover);
}

.desktop-auth-code-btn:disabled,
.desktop-auth-code-btn.is-disabled {
    border-color: var(--auth-disabled-border);
    background: var(--auth-disabled-bg);
    color: var(--auth-disabled-text);
    cursor: not-allowed;
}

.desktop-auth-code-tip {
    margin-top: 8px;
    color: var(--auth-primary);
    font-size: 13px;
    line-height: 1.5;
}

.desktop-auth-form-message {
    min-height: 20px;
    margin: 12px 0 -4px;
    color: #d9534f;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.desktop-auth-form-message:empty {
    display: none;
}

.desktop-auth-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 22px;
    color: #747b84;
    font-size: 14px;
    font-weight: 400;
}

.desktop-auth-agreement input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-primary);
}

.desktop-auth-agreement a {
    color: var(--auth-primary);
}

.desktop-auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 4px;
    background: var(--auth-primary);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.desktop-auth-submit:hover,
.desktop-auth-submit:focus {
    background: var(--auth-primary-hover);
}

body.desktop-auth-body.auth-theme-spring {
    --auth-primary: #ba2f60;
    --auth-primary-hover: #9f244f;
    --auth-soft: #fbf0f4;
    --auth-soft-hover: #f6e1e9;
    --auth-focus: rgba(186, 47, 96, .16);
    --auth-disabled-bg: #f8e8ee;
    --auth-disabled-border: #e8bed0;
    --auth-disabled-text: #a85c78;
    --auth-header-bg: #7a2645;
    --auth-header-border: #7a2645;
    --auth-header-text: #fff;
}

.auth-theme-spring .desktop-auth-brand-logo {
    margin-left: -25px;
}
