/* ==================================================
   登录页样式（参照 cc.html）
   命名空间：root-login-*
   ================================================== */

/* CSS 变量 */
:root {
    --root-login-primary: #1677ff;
    --root-login-primary-dark: #0958d9;
    --root-login-cyan: #13b8b8;
    --root-login-text-main: #17345b;
    --root-login-text-secondary: #60728d;
    --root-login-input-bg: rgba(247, 251, 255, 0.96);
    --root-login-border: rgba(66, 119, 184, 0.18);
    --root-login-border-hover: rgba(22, 119, 255, 0.4);
    --root-login-success: #20b47a;
    --root-login-danger: #e94d65;
    --root-login-shadow: 0 30px 80px rgba(44, 93, 151, 0.16), 0 8px 26px rgba(60, 112, 169, 0.08);
}

/* 页面背景层 */
.root-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.root-login-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(51, 128, 210, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 128, 210, 0.055) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000 5%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, #000 5%, transparent 95%);
}

.root-login-bg-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
}

.root-login-bg-light-one {
    top: -190px;
    left: -100px;
    width: 490px;
    height: 490px;
    background: radial-gradient(circle, rgba(51, 151, 255, 0.2), rgba(51, 151, 255, 0.04) 58%, transparent 70%);
}

.root-login-bg-light-two {
    right: -130px;
    bottom: -210px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(19, 194, 194, 0.17), rgba(19, 194, 194, 0.03) 60%, transparent 72%);
}

.root-login-bg-ring {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(22, 119, 255, 0.5);
    box-shadow: 0 0 24px rgba(22, 119, 255, 0.3);
    border-radius: 50%;
}

.root-login-bg-ring::before,
.root-login-bg-ring::after {
    position: absolute;
    border: 1px solid rgba(22, 119, 255, 0.08);
    border-radius: inherit;
    content: "";
}

.root-login-bg-ring::before {
    inset: 60px;
}

.root-login-bg-ring::after {
    inset: 135px;
}

.root-login-bg-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.55);
    box-shadow: 0 0 18px rgba(22, 119, 255, 0.35);
    animation: root-login-float 5s ease-in-out infinite;
}

.root-login-bg-dot-one {
    top: 16%;
    left: 7%;
}

.root-login-bg-dot-two {
    top: 20%;
    right: 8%;
    width: 10px;
    height: 10px;
    background: rgba(19, 194, 194, 0.5);
    animation-delay: -1.5s;
}

.root-login-bg-dot-three {
    right: 15%;
    bottom: 12%;
    animation-delay: -3s;
}

@keyframes root-login-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

/* 页面主体 */
.root-login-page {
    display: flex;
    min-height: 100vh;
    padding: 30px;
    background:
        radial-gradient(circle at 10% 15%, rgba(105, 177, 255, 0.28), transparent 27%),
        radial-gradient(circle at 88% 78%, rgba(92, 219, 211, 0.22), transparent 28%),
        linear-gradient(135deg, #edf7ff 0%, #f9fcff 46%, #edfafa 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    color: var(--root-login-text-main);
    overflow-x: hidden;
}

.root-login-shell {
    display: grid;
    grid-template-columns: minmax(500px, 1.12fr) minmax(500px, 0.88fr);
    width: min(1240px, 100%);
    min-height: 720px;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(106, 153, 205, 0.17);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--root-login-shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

/* 左侧品牌区域 */
.root-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 720px;
    padding: 34px 42px 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 42%, rgba(73, 164, 255, 0.17), transparent 42%),
        linear-gradient(145deg, rgba(228, 243, 255, 0.98), rgba(239, 251, 252, 0.96));
}

.root-login-brand::after {
    position: absolute;
    top: 6%;
    right: 0;
    width: 1px;
    height: 88%;
    background: linear-gradient(to bottom, transparent, rgba(54, 128, 212, 0.22), transparent);
    content: "";
}

.root-login-brand-orbit {
    position: absolute;
    right: -147px;
    bottom: 43px;
    z-index: 1;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(22, 119, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(22, 119, 255, 0.12);
    animation: root-login-orbit-breathe 4s ease-in-out infinite;
}

.root-login-brand-orbit::before,
.root-login-brand-orbit::after {
    position: absolute;
    border: 1px solid rgba(22, 119, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.root-login-brand-orbit::before {
    inset: 58px;
}

.root-login-brand-orbit::after {
    inset: 122px;
}

.root-login-brand-orbit-dot {
    position: absolute;
    top: 47px;
    left: 80px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a5ff;
    box-shadow: 0 0 17px rgba(40, 165, 255, 0.7);
    transform-origin: 125px 158px;
    animation: root-login-rotate 10s linear infinite;
}

@keyframes root-login-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes root-login-orbit-breathe {
    0%, 100% {
        opacity: 0.75;
    }
    50% {
        opacity: 1;
    }
}

/* 左侧头部 */
.root-login-brand-header {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 19px;
    padding-left: 8px;
}

.root-login-logo {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #48a4ff, #1677ff);
    box-shadow:
        0 13px 30px rgba(22, 119, 255, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.root-login-logo::after {
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    content: "";
}

.root-login-logo img {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.root-login-logo svg {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
}

.root-login-brand-name {
    min-width: 0;
}

.root-login-brand-name strong {
    display: block;
    color: #17335a;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 3px;
}

.root-login-brand-name span {
    display: block;
    margin-top: 7px;
    color: #6f86a3;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 左侧图片区域 */
.root-login-brand-image-area {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
    overflow: hidden;
}

.root-login-brand-image-glow {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 75%;
    height: 60%;
    border-radius: 50%;
    background: rgba(98, 183, 255, 0.17);
    filter: blur(65px);
    transform: translate(-50%, -50%);
}

.root-login-brand-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 80%;
    height: 80%;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 20px 26px rgba(42, 119, 197, 0.15));
    animation: root-login-image-float 6s ease-in-out infinite;
}

@keyframes root-login-image-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* 右侧表单区域 */
.root-login-form-panel {
    display: flex;
    align-items: center;
    padding: 42px 38px;
    background:
        radial-gradient(circle at 100% 0, rgba(105, 177, 255, 0.09), transparent 38%),
        rgba(255, 255, 255, 0.92);
}

.root-login-form-box {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

/* 移动端品牌（默认隐藏） */
.root-login-mobile-brand {
    display: none;
}

/* 表单标题 */
.root-login-form-heading {
    margin-bottom: 30px;
    padding-left: 94px;
}

.root-login-form-heading h2 {
    margin: 0;
    color: #17345b;
    font-size: 29px;
    font-weight: 650;
    letter-spacing: 2px;
}

.root-login-form-heading p {
    margin: 11px 0 0;
    color: var(--root-login-text-secondary);
    font-size: 14px;
}

/* 表单横向字段 */
.root-login-field {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.root-login-field-label {
    display: block;
    margin: 0;
    color: #425a78;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

.root-login-input-wrap {
    position: relative;
    min-width: 0;
}

.root-login-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 19px;
    height: 19px;
    color: #8ba1ba;
    transform: translateY(-50%);
    transition: color 0.2s ease;
    pointer-events: none;
}

.root-login-input-wrap input,
.root-login-input-wrap .ant-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 48px;
    outline: none;
    border: 1px solid var(--root-login-border);
    border-radius: 11px;
    color: #263e5d;
    background: var(--root-login-input-bg);
    caret-color: var(--root-login-primary);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.root-login-input-wrap input::placeholder,
.root-login-input-wrap .ant-input::placeholder {
    color: #a1afc0;
}

.root-login-input-wrap input:hover,
.root-login-input-wrap .ant-input:hover {
    border-color: var(--root-login-border-hover);
    background: #fff;
}

.root-login-input-wrap input:focus,
.root-login-input-wrap .ant-input:focus {
    border-color: rgba(22, 119, 255, 0.65);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(22, 119, 255, 0.08),
        0 8px 18px rgba(22, 119, 255, 0.06);
}

.root-login-input-wrap:focus-within .root-login-input-icon {
    color: var(--root-login-primary);
}

/* 角色 Select 适配：与 Input 视觉一致（高度/边框/圆角/padding/placeholder/focus） */
.root-login-input-wrap .ant-select {
    width: 100%;
}

.root-login-input-wrap .ant-select .ant-select-selection {
    height: 52px;
    padding: 0 48px;
    border: 1px solid var(--root-login-border);
    border-radius: 11px;
    color: #263e5d;
    background: var(--root-login-input-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.root-login-input-wrap .ant-select .ant-select-selection__rendered {
    height: 52px;
    line-height: 52px;
    margin: 0;
    padding-left: 0;
}

.root-login-input-wrap .ant-select .ant-select-selection__placeholder {
    color: #a1afc0;
}

.root-login-input-wrap .ant-select .ant-select-arrow {
    right: 18px;
    color: #8ba1ba;
}

.root-login-input-wrap:hover .ant-select .ant-select-selection {
    border-color: var(--root-login-border-hover);
    background: #fff;
}

.root-login-input-wrap .ant-select-focused .ant-select-selection,
.root-login-input-wrap .ant-select-open .ant-select-selection {
    border-color: rgba(22, 119, 255, 0.65);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(22, 119, 255, 0.08),
        0 8px 18px rgba(22, 119, 255, 0.06);
}

/* 密码切换按钮 */
.root-login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #90a2b7;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, background 0.2s ease;
}

.root-login-password-toggle:hover {
    color: var(--root-login-primary);
    background: rgba(22, 119, 255, 0.07);
}

.root-login-password-toggle svg {
    width: 19px;
    height: 19px;
}

/* 验证码行 */
.root-login-captcha-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 126px;
    gap: 10px;
    min-width: 0;
}

.root-login-captcha-row .root-login-input-wrap {
    min-width: 0;
}

.root-login-captcha-row .root-login-input-wrap input {
    padding-right: 12px;
}

.root-login-captcha-box {
    position: relative;
    display: flex;
    width: 126px;
    height: 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(22, 119, 255, 0.2);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(227, 242, 255, 0.96), rgba(230, 250, 248, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.root-login-captcha-box::before,
.root-login-captcha-box::after {
    position: absolute;
    width: 90px;
    height: 1px;
    background: rgba(22, 119, 255, 0.13);
    content: "";
}

.root-login-captcha-box::before {
    top: 13px;
    left: -18px;
    transform: rotate(18deg);
}

.root-login-captcha-box::after {
    right: -16px;
    bottom: 12px;
    transform: rotate(-17deg);
}

.root-login-captcha-box:hover {
    border-color: rgba(22, 119, 255, 0.48);
    box-shadow: 0 7px 16px rgba(22, 119, 255, 0.1);
    transform: translateY(-1px);
}

.root-login-captcha-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.root-login-captcha-refresh {
    position: absolute;
    right: 5px;
    bottom: 2px;
    z-index: 1;
    color: #7893b0;
    font-size: 9px;
    white-space: nowrap;
}

/* 表单选项（记住账号 + 忘记密码） */
.root-login-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 24px;
    padding-left: 94px;
}

.root-login-remember {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #71839a;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.root-login-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.root-login-checkmark {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid rgba(100, 131, 168, 0.35);
    border-radius: 4px;
    background: #f7faff;
    transition: all 0.2s ease;
}

.root-login-checkmark svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.root-login-remember input:focus-visible + .root-login-checkmark {
    outline: 2px solid rgba(22, 119, 255, 0.35);
    outline-offset: 2px;
}

.root-login-remember input:checked + .root-login-checkmark {
    border-color: var(--root-login-primary);
    background: var(--root-login-primary);
    box-shadow: 0 4px 10px rgba(22, 119, 255, 0.22);
}

.root-login-remember input:checked + .root-login-checkmark svg {
    opacity: 1;
    transform: scale(1);
}

.root-login-forgot-link {
    color: var(--root-login-primary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.root-login-forgot-link:hover {
    color: var(--root-login-primary-dark);
}

/* 登录按钮 */
.root-login-form-actions {
    padding-left: 94px;
}

.root-login-submit-button {
    position: relative;
    width: 100%;
    height: 52px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 5px;
    background: linear-gradient(100deg, #1677ff, #2997ed 58%, #18aeb0);
    box-shadow:
        0 13px 28px rgba(22, 119, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.root-login-submit-button::before {
    position: absolute;
    top: 0;
    left: -110%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-22deg);
    transition: left 0.65s ease;
    content: "";
}

.root-login-submit-button:hover {
    filter: brightness(1.04);
    box-shadow:
        0 16px 34px rgba(22, 119, 255, 0.31),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.root-login-submit-button:hover::before {
    left: 145%;
}

.root-login-submit-button:active {
    transform: translateY(0);
}

.root-login-submit-button:disabled {
    cursor: wait;
    filter: saturate(0.75);
    opacity: 0.82;
}

.root-login-button-text {
    display: inline-block;
}

.root-login-button-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}

.root-login-submit-button.loading .root-login-button-text {
    display: none;
}

.root-login-submit-button.loading .root-login-button-loading {
    display: flex;
}

.root-login-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: root-login-spin 0.75s linear infinite;
}

@keyframes root-login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 行内错误/成功提示 */
.root-login-form-message {
    min-height: 19px;
    margin: 11px 0 0;
    color: var(--root-login-danger);
    font-size: 13px;
    text-align: center;
}

.root-login-form-message.success {
    color: var(--root-login-success);
}

/* SSO 按钮 */
.root-login-sso-wrapper {
    margin-top: 14px;
    padding-left: 94px;
}

.root-login-sso-button {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(22, 119, 255, 0.22);
    border-radius: 11px;
    color: var(--root-login-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: all 0.2s ease;
}

.root-login-sso-button:hover {
    color: var(--root-login-primary-dark);
    border-color: rgba(22, 119, 255, 0.45);
    background: rgba(255, 255, 255, 0.95);
}

/* 顶部 tips 警示 */
.root-login-tips {
    margin-bottom: 16px;
}

.root-login-tips .ant-alert {
    padding: 8px 12px;
    border-radius: 11px;
    font-size: 12px;
}

/* 提示信息卡片（统一收纳：分辨率 + 安全） */
.root-login-tips-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 17px;
    padding: 14px 16px;
    border: 1px solid rgba(69, 130, 196, 0.1);
    border-radius: 11px;
    color: #7b8da3;
    font-size: 12px;
    line-height: 1.6;
    background:
        linear-gradient(135deg, rgba(238, 247, 255, 0.78), rgba(238, 251, 250, 0.65));
}

.root-login-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.root-login-tip-item > svg {
    flex: 0 0 auto;
    width: 16px;
    margin-top: 1px;
    color: var(--root-login-primary);
}

.root-login-tip-item > span {
    flex: 1;
    min-width: 0;
}

.root-login-page-copyright {
    display: none;
}

/* ==================================================
   响应式
   ================================================== */

@media (max-width: 1080px) {
    .root-login-page {
        padding: 22px;
    }

    .root-login-shell {
        grid-template-columns: 1fr;
        width: min(560px, 100%);
        min-height: auto;
    }

    .root-login-brand {
        display: none;
    }

    .root-login-form-panel {
        min-height: 720px;
        padding: 42px 38px;
    }

    .root-login-form-box {
        max-width: 470px;
    }

    .root-login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 38px;
    }

    .root-login-mobile-brand .root-login-logo {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .root-login-mobile-brand .root-login-logo svg,
    .root-login-mobile-brand .root-login-logo img {
        width: 30px;
        height: 30px;
    }

    .root-login-mobile-brand .root-login-brand-name strong {
        font-size: 21px;
    }

    .root-login-mobile-brand .root-login-brand-name span {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .root-login-page-copyright {
        display: block;
        margin-top: 24px;
        color: #95a3b5;
        font-size: 11px;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .root-login-page {
        padding: 0;
    }

    .root-login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .root-login-form-panel {
        min-height: 100vh;
        padding: 28px 18px;
    }

    .root-login-mobile-brand {
        margin-bottom: 40px;
    }

    .root-login-form-heading {
        padding-left: 78px;
    }

    .root-login-form-heading h2 {
        font-size: 27px;
    }

    .root-login-form-heading p {
        font-size: 13px;
    }

    .root-login-field {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 8px;
    }

    .root-login-field-label {
        font-size: 13px;
    }

    .root-login-input-wrap input,
    .root-login-input-wrap .ant-input {
        height: 50px;
        padding-right: 12px;
        padding-left: 40px;
    }

    .root-login-input-icon {
        left: 13px;
        width: 17px;
        height: 17px;
    }

    /* 角色 Select 移动端适配：与 Input 同步缩为 50px */
    .root-login-input-wrap .ant-select .ant-select-selection {
        height: 50px;
        padding: 0 40px;
    }

    .root-login-input-wrap .ant-select .ant-select-selection__rendered {
        height: 50px;
        line-height: 50px;
    }

    .root-login-password-toggle {
        right: 7px;
    }

    .root-login-captcha-row {
        grid-template-columns: minmax(80px, 1fr) 105px;
        gap: 7px;
    }

    .root-login-captcha-box {
        width: 105px;
        height: 50px;
    }

    .root-login-captcha-refresh {
        font-size: 8px;
    }

    .root-login-form-options,
    .root-login-form-actions,
    .root-login-sso-wrapper,
    .agreement-privacy-wrapper {
        padding-left: 78px;
    }

    .root-login-tips-card {
        margin-left: 78px;
    }

    .root-login-agreement-modal {
        max-width: calc(100vw - 32px);
    }
}

/* ==================================================
   兼容：原有 school logo 占位与系统名备注
   ================================================== */
.root-login-brand-name .login_xsg_year {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    color: #177FDD;
    margin-left: 6px;
}

/* 用户协议与隐私政策（登录按钮下方，与表单对齐线一致） */
.agreement-privacy-wrapper{
    box-sizing: border-box;
    margin-top: 16px;
    padding-left: 94px;
    text-align: left;
    font-size: 12px;
    color: #71839a;
    line-height: 22px;
}

.root-login-agree{
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.root-login-agree input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.root-login-agree .root-login-checkmark{
    flex: 0 0 auto;
    margin-top: 2px;
}

.root-login-agree input:focus-visible + .root-login-checkmark{
    outline: 2px solid rgba(22, 119, 255, 0.35);
    outline-offset: 2px;
}

.root-login-agree input:checked + .root-login-checkmark{
    border-color: var(--root-login-primary);
    background: var(--root-login-primary);
    box-shadow: 0 4px 10px rgba(22, 119, 255, 0.22);
}

.root-login-agree input:checked + .root-login-checkmark svg{
    opacity: 1;
    transform: scale(1);
}

.root-login-agree-text{
    flex: 1;
    min-width: 0;
    line-height: 20px;
    word-break: break-all;
}

.agreement-privacy-wrapper a{
    color: var(--root-login-primary);
    text-decoration: none;
    margin: 0 2px;
    cursor: pointer;
}

.agreement-privacy-wrapper a:hover{
    color: var(--root-login-primary-dark);
    text-decoration: underline;
}

.agreement-privacy-wrapper .root-login-agree-join{
    color: #999;
    margin: 0 2px;
}

/* 用户协议/隐私政策弹窗（与登录页风格统一） */
.root-login-agreement-modal .ant-modal-content{
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(44, 93, 151, 0.22), 0 4px 16px rgba(60, 112, 169, 0.1);
}

.root-login-agreement-modal .ant-modal-header{
    padding: 18px 24px 14px;
    border-bottom: 1px solid rgba(69, 130, 196, 0.12);
}

.root-login-agreement-modal .ant-modal-title{
    color: #17345b;
    font-size: 16px;
    font-weight: 600;
}

.root-login-agreement-modal .ant-modal-close{
    color: #90a2b7;
}

.root-login-agreement-modal .ant-modal-close:hover{
    color: #425a78;
}

.root-login-agreement-modal .ant-modal-body{
    padding: 20px 24px;
    color: #425a78;
    font-size: 13px;
}

.root-login-agreement-content{
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 6px;
    line-height: 1.8;
}

.root-login-agreement-content h3{
    margin: 0 0 12px;
    color: var(--root-login-primary);
    font-size: 16px;
    font-weight: 600;
}

.root-login-agreement-content p{
    margin: 10px 0;
}

.root-login-agreement-content b{
    color: #17345b;
}

.root-login-agreement-content::-webkit-scrollbar{
    width: 6px;
}

.root-login-agreement-content::-webkit-scrollbar-thumb{
    border-radius: 3px;
    background: rgba(22, 119, 255, 0.25);
}

.root-login-agreement-content::-webkit-scrollbar-track{
    background: transparent;
}

.root-login-agreement-modal .ant-modal-footer{
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(69, 130, 196, 0.12);
}

.root-login-agreement-footer{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.root-login-agreement-footer .ant-btn{
    height: 36px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 13px;
}

.root-login-agreement-footer .ant-btn-primary{
    border: 0;
    background: linear-gradient(100deg, #1677ff, #2997ed 58%, #18aeb0);
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.24);
}

.root-login-agreement-footer .ant-btn-primary:hover{
    filter: brightness(1.05);
    background: linear-gradient(100deg, #1677ff, #2997ed 58%, #18aeb0);
}