/* 共享后台登录页品牌样式；以同一组规则覆盖默认与 Gitee 入口。 */
.hechuan-login-layout {
    --hc-green: #123f32;
    --hc-cream: #f3ecd9;
    --hc-paper: #fffcf5;
    --hc-muted: #637168;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #f4f1e9;
    color: var(--hc-green);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hechuan-login-layout *,
.hechuan-login-layout *::before,
.hechuan-login-layout *::after { box-sizing: border-box; }

.hechuan-login-layout .hc-login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 48px 24px 24px;
}

.hechuan-login-layout .hc-login-panel {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    width: 100%;
    max-width: 1200px;
    min-height: 650px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--hc-paper);
    box-shadow: 0 18px 56px rgb(25 49 37 / 10%);
}

.hechuan-login-layout .login-brand-area {
    min-width: 0;
    padding: 48px 52px;
    background: var(--hc-green);
    color: var(--hc-cream);
}

.hechuan-login-layout .login-brand-lockup {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hechuan-login-layout .login-brand-logo-frame {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

.hechuan-login-layout .login-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hechuan-login-layout .login-brand-title {
    min-width: 0;
    margin: 0;
    color: inherit;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
}

.hechuan-login-layout .login-brand-title > span { display: block; }
.hechuan-login-layout .login-brand-title .login-brand-platform {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hechuan-login-layout .login-brand-tagline {
    margin: 30px 0 24px;
    color: var(--hc-cream);
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.hechuan-login-layout .login-brand-tagline > span { display: block; }
.hechuan-login-layout .login-brand-description {
    color: #e0e4d5;
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.hechuan-login-layout .login-brand-description p { margin: 0 0 12px; }
.hechuan-login-layout .login-brand-philosophy {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgb(243 236 217 / 24%);
    color: var(--hc-cream);
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.hechuan-login-layout .login-brand-coverline {
    margin: 12px 0 0;
    color: #c7d2c4;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.hechuan-login-layout .login-form-area {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 48px;
}

.hechuan-login-layout .form-signin,
.hechuan-login-layout .login-wrap { width: 100%; min-width: 0; margin: 0; }
.hechuan-login-layout .login-form-eyebrow {
    margin: 0 0 12px;
    color: #8e3724;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.hechuan-login-layout .login-site-title {
    margin: 0;
    color: var(--hc-green);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.hechuan-login-layout .login-form-intro {
    margin: 12px 0 32px;
    color: var(--hc-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hechuan-login-layout .login-field-label {
    display: block;
    margin: 0 0 8px;
    color: #284a3a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.hechuan-login-layout .login-field-label-next { margin-top: 22px; }
.hechuan-login-layout .input-group { flex-wrap: nowrap; }
.hechuan-login-layout .form-control {
    min-width: 0;
    min-height: 48px;
    border-color: #bdc9ba;
    border-radius: 8px;
    background-color: #fffefa;
    color: var(--hc-green);
    font-size: 15px;
}

.hechuan-login-layout .form-control::placeholder { color: #707b70; font-size: 14px; opacity: 1; }
.hechuan-login-layout .input-group-text {
    min-width: 42px;
    justify-content: center;
    border-color: #bdc9ba;
    border-radius: 8px;
    background: #edf0e6;
    color: #50664f;
}

.hechuan-login-layout .form-control:focus {
    border-color: #37755b;
    outline: 2px solid #37755b;
    outline-offset: 2px;
    box-shadow: none;
}

.hechuan-login-layout .login-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 12px;
    margin: 24px 0;
    color: #425645;
    font-size: 13px;
}

.hechuan-login-layout .login-options .form-check { margin: 0; }
.hechuan-login-layout .login-options a { color: #245b46 !important; }
.hechuan-login-layout .login-options a:hover { color: var(--hc-green) !important; text-decoration: underline; }
.hechuan-login-layout .form-check-input { border-color: #aaba9f !important; }
.hechuan-login-layout .form-check-input:checked { background-color: var(--hc-green) !important; border-color: var(--hc-green) !important; }
.hechuan-login-layout .form-check-input:focus { border-color: #37755b; box-shadow: 0 0 0 3px rgb(55 117 91 / 20%); }
.hechuan-login-layout .login-options .switch { max-width: 100%; }
.hechuan-login-layout .btn-login {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--hc-green);
    border-radius: 8px;
    background: var(--hc-green);
    color: #fffcf5;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.12em;
    box-shadow: none;
}

.hechuan-login-layout .btn-login:hover { background: #245b46; border-color: #245b46; color: #fff; }
.hechuan-login-layout .btn-login:disabled { opacity: 0.65; }
.hechuan-login-layout :is(button, a, summary, input):focus-visible {
    outline: 2px solid #37755b;
    outline-offset: 4px;
    box-shadow: none;
}

.hechuan-login-layout .login-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.hechuan-login-layout .login-links :is(.btn-link, .link-button) {
    padding: 4px 0;
    border: 0;
    color: #245b46 !important;
    font-size: 14px;
    text-decoration: none;
}

.hechuan-login-layout .login-links :is(.btn-link, .link-button):hover { color: var(--hc-green) !important; text-decoration: underline; }
.hechuan-login-layout .login-error { margin: 0 0 20px; padding: 12px; border-color: #d5b0a4; background: #fff0e9; color: #85351f; font-size: 14px; line-height: 1.7; }
.hechuan-login-layout .login-sms,
.hechuan-login-layout .is-mobile .login-up { display: none; }
.hechuan-login-layout .is-mobile .login-sms { display: block; }
.hechuan-login-layout .btn-sms { flex-shrink: 0; border-color: #bdc9ba; background: #edf0e6; color: var(--hc-green); font-size: 13px; }
.hechuan-login-layout .login-brand-more { display: none; }
.hechuan-login-layout .login-footer { position: static; flex: 0 0 auto; padding: 8px 24px 24px; text-align: center; }
.hechuan-login-layout .login-footer-body { margin: 0; padding: 0; list-style: none; }
.hechuan-login-layout .login-footer-body a { display: inline-flex; align-items: center; gap: 6px; color: #626d61; font-size: 12px; line-height: 1.8; text-decoration: none; }
.hechuan-login-layout .login-footer-body a:hover { color: var(--hc-green); }

@media (max-width: 1199.98px) and (min-width: 1024px) {
    .hechuan-login-layout .login-brand-area { padding: 40px 36px; }
    .hechuan-login-layout .login-form-area { padding: 40px 32px; }
    .hechuan-login-layout .login-brand-lockup { gap: 20px; }
    .hechuan-login-layout .login-brand-logo-frame { flex-basis: 100px; width: 100px; height: 100px; }
    .hechuan-login-layout .login-brand-title { font-size: 28px; }
    .hechuan-login-layout .login-brand-title .login-brand-platform { font-size: 15px; }
}

@media (max-width: 1023.98px) {
    .hechuan-login-layout .hc-login-page { align-items: flex-start; padding: 24px 20px 16px; }
    .hechuan-login-layout .hc-login-panel { grid-template-columns: minmax(0, 1fr); max-width: 600px; min-height: 0; border-radius: 20px; }
    .hechuan-login-layout .login-brand-area { padding: 28px 32px; }
    .hechuan-login-layout .login-brand-lockup { gap: 20px; }
    .hechuan-login-layout .login-brand-logo-frame { flex-basis: 80px; width: 80px; height: 80px; }
    .hechuan-login-layout .login-brand-title { font-size: 26px; }
    .hechuan-login-layout .login-brand-title .login-brand-platform { font-size: 15px; }
    .hechuan-login-layout .login-brand-tagline { margin: 20px 0 0; font-size: 30px; line-height: 1.4; }
    .hechuan-login-layout .login-brand-story { display: none; }
    .hechuan-login-layout .login-form-area { padding: 32px; }
    .hechuan-login-layout .login-site-title { font-size: 22px; }
    .hechuan-login-layout .login-form-intro { margin-bottom: 24px; }
    .hechuan-login-layout .login-brand-more { display: block; margin: 0 32px 24px; border-top: 1px solid #d6dccd; }
    .hechuan-login-layout .login-brand-more summary { padding: 16px 0 0; color: #345e45; font-size: 14px; cursor: pointer; }
    .hechuan-login-layout .login-brand-more .login-brand-details { padding-top: 20px; }
    .hechuan-login-layout .login-brand-more .login-brand-description { color: #526451; font-size: 14px; }
    .hechuan-login-layout .login-brand-more .login-brand-philosophy { color: var(--hc-green); border-top-color: #d6dccd; font-size: 14px; }
    .hechuan-login-layout .login-brand-more .login-brand-coverline { color: #637168; }
    .hechuan-login-layout .login-footer { padding-bottom: 20px; }
}

@media (max-width: 479.98px) {
    .hechuan-login-layout .hc-login-page { padding: 16px 16px 12px; }
    .hechuan-login-layout .login-brand-area { padding: 24px; }
    .hechuan-login-layout .login-brand-lockup { gap: 16px; }
    .hechuan-login-layout .login-brand-logo-frame { flex-basis: 72px; width: 72px; height: 72px; }
    .hechuan-login-layout .login-brand-title { font-size: 24px; letter-spacing: 0.04em; }
    .hechuan-login-layout .login-brand-title .login-brand-platform { font-size: 13px; letter-spacing: 0; }
    .hechuan-login-layout .login-brand-tagline { font-size: 28px; }
    .hechuan-login-layout .login-form-area { padding: 28px 24px; }
    .hechuan-login-layout .login-brand-more { margin-right: 24px; margin-left: 24px; }
}
