html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "HarmonyOS_Sans_SC_Regular", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 14% 16%, rgba(0, 115, 230, 0.12), transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(0, 115, 230, 0.08), transparent 24%),
        linear-gradient(180deg, #e6f2ff 0%, #ffffff 48%, #f5f7fa 100%);
    color: #252525;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

[v-cloak] {
    display: none;
}

.role-login-page,
.role-login-page * {
    font-family: "HarmonyOS_Sans_SC_Regular", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
}

.role-login-page,
.role-login-page::before,
.role-login-page::after,
.role-login-page * ,
.role-login-page *::before,
.role-login-page *::after {
    box-sizing: border-box;
}

.role-login-page {
    position: relative;
    min-height: 100vh;
    padding: 32px;
    overflow: hidden;
}

.role-login-page::before,
.role-login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.role-login-page::before {
    background-image:
        linear-gradient(rgba(0, 115, 230, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 115, 230, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 92%);
}

.role-login-page::after {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 26%, transparent 70%, rgba(0, 115, 230, 0.05));
    opacity: 0.7;
}

.role-login-page--expert {
    --role-primary: #0073e6;
    --role-primary-soft: rgba(0, 115, 230, 0.12);
    --role-accent: #0073e6;
    --role-accent-soft: rgba(0, 115, 230, 0.1);
    --role-surface: rgba(255, 255, 255, 0.92);
    --role-surface-strong: rgba(255, 255, 255, 0.98);
    --role-border: rgba(0, 115, 230, 0.1);
    --role-input-bg: #ffffff;
    --role-muted: #6b7280;
}

.role-login-page--supplier {
    --role-primary: #0073e6;
    --role-primary-soft: rgba(0, 115, 230, 0.12);
    --role-accent: #1296db;
    --role-accent-soft: rgba(18, 150, 219, 0.1);
    --role-surface: rgba(255, 255, 255, 0.92);
    --role-surface-strong: rgba(255, 255, 255, 0.98);
    --role-border: rgba(0, 115, 230, 0.1);
    --role-input-bg: #ffffff;
    --role-muted: #6b7280;
}

.role-login-page--supervision {
    --role-primary: #0073e6;
    --role-primary-soft: rgba(0, 115, 230, 0.12);
    --role-accent: #4f6b95;
    --role-accent-soft: rgba(79, 107, 149, 0.1);
    --role-surface: rgba(255, 255, 255, 0.92);
    --role-surface-strong: rgba(255, 255, 255, 0.98);
    --role-border: rgba(0, 115, 230, 0.1);
    --role-input-bg: #ffffff;
    --role-muted: #6b7280;
}

.role-login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    max-width: 1220px;
    min-height: calc(100vh - 64px);
    margin: 0 auto;
}

.role-login__intro {
    flex: 1 1 52%;
    display: flex;
    align-items: center;
}

.role-login__intro-inner {
    max-width: 560px;
}

.role-login__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid rgba(0, 115, 230, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--role-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    box-shadow: 0 8px 24px rgba(61, 82, 102, 0.06);
}

.role-login__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0091ff, #0073e6);
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.22);
}

.role-login__system-name {
    margin: 26px 0 0;
    color: #4b5563;
    font-size: 18px;
    letter-spacing: 1px;
}

.role-login__title {
    margin: 16px 0 0;
    color: #252525;
    font-size: 48px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 0;
}

.role-login__desc {
    margin: 20px 0 0;
    max-width: 520px;
    color: var(--role-muted);
    font-size: 16px;
    line-height: 1.9;
}

.role-login__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.role-login__tags li {
    padding: 12px 18px;
    border: 1px solid rgba(0, 115, 230, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0073e6;
    font-size: 14px;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 24px rgba(61, 82, 102, 0.06);
}

.role-login__panel {
    flex: 0 0 430px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.role-login__card {
    width: 100%;
    padding: 34px 34px 28px;
    border: 1px solid var(--role-border);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
        var(--role-surface);
    box-shadow:
        0 20px 50px rgba(61, 82, 102, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
}

.role-login__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--role-accent-soft);
    color: var(--role-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.role-login__card-title {
    margin: 18px 0 0;
    color: #252525;
    font-size: 30px;
    font-weight: 700;
}

.role-login__card-desc {
    margin: 10px 0 0;
    color: var(--role-muted);
    font-size: 14px;
    line-height: 1.8;
}

.role-login__form {
    margin-top: 26px;
}

.role-login__field {
    margin-bottom: 16px;
}

.role-login__field--captcha {
    margin-bottom: 12px;
}

.role-login__label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.role-login__input-wrap,
.role-login__captcha-input,
.role-login__captcha-box {
    position: relative;
    overflow: hidden;
    border: 1px solid #dce7f2;
    border-radius: 16px;
    background: var(--role-input-bg);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.role-login__input-wrap:focus-within,
.role-login__captcha-input:focus-within {
    border-color: rgba(0, 115, 230, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.1);
    background: #ffffff;
}

.role-login__input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    opacity: 0.86;
}

.role-login__input-icon img {
    max-width: 100%;
    max-height: 100%;
}

.role-login__input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 52px;
    border: none;
    background: transparent;
    color: #252525;
    font-size: 15px;
    outline: none;
}

.role-login__input::placeholder {
    color: #9ca3af;
}

.role-login__viewpass {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    background: url(../img/view.png) center center no-repeat;
    background-size: 28px auto;
    opacity: 0.9;
    cursor: pointer;
}

.item_on .role-login__viewpass {
    background-image: url(../img/views.png);
}

.role-login__captcha-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.role-login__captcha-input {
    flex: 1 1 auto;
}

.role-login__captcha-input .role-login__input {
    padding-left: 18px;
}

.role-login__captcha-box {
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.role-login__captcha-box .imgVcode {
    max-width: 100%;
}

.role-login__captcha-action {
    display: inline-block;
    margin-top: 10px;
    color: var(--role-primary);
    font-size: 13px;
    cursor: pointer;
}

.role-login__captcha-action:hover,
.role-login__link:hover {
    color: #198cff;
}

.role-login__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.role-login__submit,
.role-login__ghost-btn {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.role-login__submit {
    border: none;
    color: #ffffff;
    background: linear-gradient(135deg, #0073e6 0%, #198cff 100%);
    box-shadow: 0 14px 30px rgba(0, 115, 230, 0.2);
}

.role-login__submit:hover,
.role-login__ghost-btn:hover {
    transform: translateY(-1px);
}

.role-login__ghost-btn {
    border: 1px solid rgba(0, 115, 230, 0.16);
    color: #0073e6;
    background: rgba(255, 255, 255, 0.92);
}

.role-login__ghost-btn:hover {
    border-color: rgba(0, 115, 230, 0.3);
    background: rgba(230, 242, 255, 0.9);
}

.role-login__links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.role-login__link {
    color: var(--role-primary);
    font-size: 13px;
}

.role-login__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e7edf3;
}

.role-login__footer a {
    color: #6b7280;
    font-size: 13px;
}

.role-login__footer a:hover {
    color: #0073e6;
}

@media (max-width: 1180px) {
    .role-login-shell {
        gap: 28px;
    }

    .role-login__title {
        font-size: 42px;
    }

    .role-login__panel {
        flex-basis: 400px;
    }
}

@media (max-width: 980px) {
    .role-login-page {
        padding: 20px;
    }

    .role-login-shell {
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        gap: 20px;
        padding: 24px 0;
    }

    .role-login__intro,
    .role-login__panel {
        flex: 1 1 auto;
    }

    .role-login__intro-inner,
    .role-login__card {
        max-width: 100%;
    }

    .role-login__title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .role-login-page {
        padding: 14px;
    }

    .role-login__card {
        padding: 24px 18px 22px;
        border-radius: 22px;
    }

    .role-login__title {
        font-size: 30px;
    }

    .role-login__desc {
        font-size: 14px;
    }

    .role-login__captcha-row,
    .role-login__links {
        flex-direction: column;
        align-items: stretch;
    }

    .role-login__captcha-box {
        flex-basis: auto;
        min-height: 54px;
    }

    .role-login__links {
        gap: 10px;
    }
}
