/* 依米教学云 · 登录页
   左侧品牌面板 + 右侧表单。扁平版式：没有投影、渐变和纹理，
   左面板用整块品牌墨绿立住画面，右侧表单保持白底，浅绿只做点缀。 */

body.body--plain {
    /* Denied / Error 这类单卡片页也走这个布局：极浅的绿灰底 */
    background: #eef2ef;
    color: #1a1d1f;
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
    letter-spacing: -.003em;
    -webkit-font-smoothing: antialiased;
}

body.body--plain .centered {
    min-height: 100vh;
    padding: 32px 20px;
}

/* ---------- 外壳 ---------- */

.si {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    width: 100%;
    max-width: 1000px;
    min-height: 620px;
    background: #fff;
    border: 1px solid #dfe6e1;
    border-radius: 16px;
    overflow: hidden;
}

/* ---------- 左：品牌面板 ---------- */

/* 纯色墨绿，不用渐变：扁平的整块绿比渐变更有分量 */
.si__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 38px 40px;
    background: #1b6042;
    color: #fff;
    overflow: hidden;
}

/* 左缘一条浅绿高光，把面板和页面底色切开 */
.si__brand::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #37a06f;
    pointer-events: none;
}

.si__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.015em;
}
.si__logo:hover { text-decoration: none; color: #fff; }

/* 绿底上不叠绿块，标改成白底绿字才立得住 */
.si__logo .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    color: #1b6042;
    border: 0;
    font-size: 15.5px;
    font-weight: 700;
}

.si__logo em {
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .45);
    padding-left: 11px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.si__pitch {
    position: relative;
    margin: auto 0;
    padding: 34px 0 26px;
}

.si__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .58);
}

.si__eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: rgba(255, 255, 255, .42);
}

.si__pitch h2 {
    margin: 0;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -.03em;
    color: #fff;
}

/* 绿面板上的强调字：提亮一档的浅绿 */
.si__pitch h2 b {
    font-weight: 700;
    color: #a9e2c1;
}

.si__pitch p {
    margin: 14px 0 0;
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .74);
}

.si__points {
    position: relative;
    display: grid;
    gap: 9px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.si__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
}

.si__points li::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #93d8b1;
    flex-shrink: 0;
}

.si__brand-foot {
    position: relative;
    font-size: 11px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .5);
}

/* ---------- 右：登录面板 ---------- */

.si__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 46px;
    background: #fff;
}

.si__head { margin-bottom: 22px; }
.si__head h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #1a1d1f;
}
.si__head p {
    margin: 7px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #7d8388;
}

/* 表单 */
.si .signin__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 0 0 14px;
}

/* app.css 里 .field 是给后台两列表单用的 grid-column: span 2，
   这里不改会让登录表单凭空多出一列，输入框和按钮缩成半宽 */
.si .field {
    grid-column: auto;
    display: grid;
    gap: 7px;
}

.si .field > span {
    font-size: 12px;
    font-weight: 550;
    letter-spacing: .01em;
    color: #4c5257;
}

.si .field input {
    height: 44px;
    padding: 0 13px;
    border: 1px solid #d8dbde;
    border-radius: 8px;
    background: #fff;
    color: #1a1d1f;
    font: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color .15s cubic-bezier(.4, 0, .2, 1),
                background .15s cubic-bezier(.4, 0, .2, 1);
}

.si .field input::placeholder { color: #a5abb0; }

.si .field input:hover { border-color: #bcc1c6; }

.si .field input:focus {
    border-color: #2f8a5f;
    box-shadow: 0 0 0 3px rgba(27, 96, 66, .12);
}

.si .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 15px;
    border: 1px solid #d6d8db;
    border-radius: 8px;
    background: #fff;
    color: #1a1d1f;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.si .btn:hover { background: #f8f9fa; border-color: #bcc1c6; text-decoration: none; }
.si .btn:active { background: #eef0f1; }

/* 主按钮：纯墨绿实色，无渐变无投影 */
.si .btn--primary {
    height: 46px;
    border-color: #1d6b46;
    background: #1d6b46;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
}
.si .btn--primary:hover { border-color: #14563a; background: #14563a; }
.si .btn--primary:active { background: #0f4630; }

.si .signin__submit { width: 100%; margin-top: 4px; }

.si .signin__wecom {
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #4c5257;
    background: #fff;
}
.si .signin__wecom:hover { text-decoration: none; border-color: #bcc1c6; background: #f8f9fa; color: #1a1d1f; }

.si .signin__hint {
    margin: 10px 0 0;
    font-size: 11.5px;
    line-height: 1.75;
    color: #949ba1;
}

.si .notice {
    margin: 0 0 14px;
    padding: 9px 12px;
    border: 1px solid #ecdcc0;
    border-left: 3px solid #d9a33c;
    border-radius: 6px;
    background: #fdfaf1;
    color: #856216;
    font-size: 12.5px;
    line-height: 1.7;
}

.si .notice--error {
    border-color: #f0d5d2;
    border-left-color: #b3261e;
    background: #fdf4f3;
    color: #a0332b;
}

/* 开发态快速登录 */
.si .signin__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 12px;
    color: #9aa1a7;
    font-size: 11px;
    letter-spacing: .04em;
}
.si .signin__divider::before,
.si .signin__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef0f1;
}

.si .signin__list { display: grid; gap: 6px; max-height: 208px; overflow-y: auto; padding-right: 2px; }

.si .signin__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e8eaec;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    color: #1a1d1f;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color .14s, background .14s;
}

.si .signin__item:hover {
    border-color: #c5ddce;
    background: #f3f8f5;
}

.si .signin__name {
    flex: 1 1 0%;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 角色标签用浅绿底，替代之前的中性灰 */
.si .signin__item .badge {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 4px;
    background: #e9f4ee;
    color: #1f6d4a;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42%;
}

.si .signin__id {
    flex: 0 0 auto;
    margin-left: auto;
    color: #a2a9ae;
    font-size: 11px;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.si__foot {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eef0f1;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: .02em;
    color: #a2a9ae;
}

/* ---------- 响应式 ---------- */

@media (max-width: 940px) {
    .si {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        min-height: 0;
        border-radius: 14px;
    }
    .si__brand { padding: 26px 28px 24px; }
    .si__pitch { padding: 22px 0 18px; margin: 0; }
    .si__pitch h2 { font-size: 23px; }
    .si__pitch p { font-size: 12.5px; margin-top: 10px; }
    .si__points { display: none; }
    .si__brand-foot { display: none; }
    .si__panel { padding: 30px 28px 26px; }
}
