/* 登录35独立主题：森林绿、浅绿底和白色卡片。 */
* { box-sizing: border-box; }
html { min-height: 100%; background: #f1f7ee; }
body { margin: 0; color: #173e2c; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.login-shell { max-width: 480px; min-height: 100vh; margin: 0 auto; padding-bottom: 24px; }
.brand-header { position: relative; overflow: hidden; min-height: 0; padding: 8px 26px 48px; background: #167c2d; color: #fff; }
.brand-header:before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; top: -104px; left: -120px; background: rgba(190,239,151,.12); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-caption { font-size: 10px; letter-spacing: 2px; color: #d8eed5; }
.language-link { display: flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; }
.language-link svg { width: 18px; height: 18px; }
.leaf-decoration { position: absolute; right: -30px; bottom: -43px; width: 190px; opacity: .35; pointer-events: none; }
.leaf-decoration svg { width: 100%; height: auto; fill: #9acb66; stroke: #c1e5a0; stroke-width: 1; }
.leaf-decoration svg > path:first-child { fill: none; stroke-width: 2; }
.brand { position: relative; margin-top: 6px; }
.brand-logo { margin-left: auto; margin-right: auto; width: 66px; height: 66px; padding: 4px; border-radius: 50%; background: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; }
.brand h1 { text-align: center; font-size: 27px; line-height: 1.35; font-weight: 700; margin: 12px 0 7px; overflow-wrap: anywhere; }
.brand p { text-align: center; font-size: 14px; line-height: 1.6; margin: 0; color: #d9eed8; }
.login-card { position: relative; margin: -34px 20px 0; padding: 18px 24px 20px; background: #fff; border: 1px solid #e1ecd9; border-radius: 23px; box-shadow: 0 12px 30px rgba(33,80,30,.035); }
.card-heading { position: relative; display: flex; justify-content: center; align-items: center; min-height: 36px; padding: 0 46px; margin-bottom: 14px; }
.heading-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #e4f3d9; color: #128535; border-radius: 12px; }
.card-heading h2 { font-size: 21px; margin: 0; line-height: 1.4; }
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 9px; color: #56715f; font-size: 14px; line-height: 1.5; }
.input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 15px; background: #f5f8f2; border: 1px solid #e3ebdd; border-radius: 13px; }
.input-wrap > svg { width: 20px; height: 20px; color: #78917b; }
.input-wrap:focus-within { border-color: #238c3d; background: #fafcf8; box-shadow: 0 0 0 3px rgba(35,140,61,.07); }
.input-wrap input { width: 100%; min-width: 0; height: 51px; padding: 0; border: 0; outline: none; background: transparent; font-size: 16px; color: #183f29; }
.input-wrap input::placeholder { color: #9aa698; }
.password-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 44px; margin-right: -8px; flex-shrink: 0; padding: 0; border: 0; background: transparent; color: #81947d; cursor: pointer; }
.password-toggle svg { width: 20px; height: 20px; }
.eye-slash { display: none; }
[aria-pressed="true"] .eye-slash { display: block; }
.form-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; margin: 1px 0 18px; }
.remember { display: flex; align-items: center; gap: 7px; color: #7a8b79; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: #14832c; margin: 0; }
.form-options a { color: #16822f; padding: 4px 0; }
.login-button { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; min-height: 51px; padding: 12px 18px; border: 0; border-radius: 30px; background: #16852d; color: #fff; font-size: 17px; font-weight: 650; cursor: pointer; }
.login-button svg { width: 19px; height: 19px; }
.login-button:hover { background: #116c25; }
.login-button:disabled { opacity: .65; cursor: wait; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 19px 0 0; color: #92a18d; font-size: 11px; line-height: 1.7; }
.privacy-note svg { width: 13px; height: 16px; }
.app-link { display: flex; align-items: center; gap: 12px; margin: 12px 20px 0; padding: 11px 18px; border: 1px solid #e1ecd9; border-radius: 18px; background: #fff; font-size: 14px; }
.app-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 11px; background: #e9f5df; color: #16852d; }
.app-icon svg { width: 21px; height: 21px; }
.app-arrow { width: 16px; height: 16px; margin-left: auto; color: #99aa92; }
.page-footer { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 27px 24px 0; font-size: 11px; line-height: 1.6; color: #97a68f; overflow-wrap: anywhere; }
.page-footer > span { width: 22px; height: 1px; flex-shrink: 0; background: #d7e2d1; }
a:focus-visible, button:focus-visible { outline: 3px solid #92c879; outline-offset: 3px; }
@media (min-width: 768px) {
    body { padding: 36px 20px; background: #edf3ea; }
    .login-shell { min-height: auto; background: #f3f8ef; border: 1px solid #dce7d5; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 60px rgba(38,68,29,.06); }
}
@media (max-width: 360px) {
    .brand-header { padding-left: 22px; padding-right: 22px; }
    .login-card { margin-left: 16px; margin-right: 16px; padding: 18px 19px 20px; }
    .brand h1 { text-align: center; font-size: 25px; }
    .app-link { margin-left: 16px; margin-right: 16px; }
    .brand-caption { font-size: 9px; letter-spacing: 1px; }
}


/* 恢复舒适间距，剩余屏幕高度分配给品牌区与表单卡片。 */
.login-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 12px;
}
.brand-header {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 54px;
}
.brand {
    margin-top: 14px;
}
.brand h1 {
    margin-top: 16px;
    margin-bottom: 9px;
}
.login-card {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
}
.card-heading { margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.form-options { margin-bottom: 24px; }
.app-link { flex-shrink: 0; margin-top: 14px; }
@media (min-width: 768px) {
    .login-shell { min-height: min(860px, calc(100vh - 72px)); }
}

/* 下载文字独立居中，两侧图标保留原位置。 */
.app-link {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 35px;
}
.app-link > span:not(.app-icon) {
    text-align: center;
    min-width: 0;
}
.app-arrow { justify-self: end; margin-left: 0; }

/* 自定义绿色勾选框，兼容尚不支持 accent-color 的浏览器。 */
.remember input {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    border: 1px solid #b9cbb2;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}
.remember input:checked {
    border-color: #16852d;
    background-color: #16852d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}
.remember input:focus { outline: 2px solid #92c879; outline-offset: 3px; }

/* 绿色光束缓慢绕行一圈，消失两秒后重复。 */
.brand-logo { position: relative; isolation: isolate; background: transparent; }
.brand-logo img { position: relative; z-index: 1; background: #fff; animation: none; transform: none; }
.logo-light-orbit {
    position: absolute;
    top: -13px;
    right: -13px;
    bottom: -13px;
    left: -13px;
    z-index: 2;
    pointer-events: none;
    animation: logo-light-one-orbit 10s linear infinite;
}
.logo-light-orbit .logo-light-trail {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: #c5ff95;
    stroke: none;
    filter: drop-shadow(0 0 3px #8aee57) drop-shadow(0 0 6px #61d23d);
}
@keyframes logo-light-one-orbit {
    0% { transform: rotate(0deg); opacity: 0; }
    2% { opacity: 1; }
    78% { opacity: 1; }
    80% { transform: rotate(360deg); opacity: 0; }
    100% { transform: rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-light-orbit { display: none; animation: none; }
}

/* 能量光效使用模板5 footer.jsp 的 --theme-primary。 */
.input-wrap {
    position: relative;
    transition: border-color .3s ease, background-color .3s ease;
    isolation: isolate;
}
.input-wrap:before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border-radius: 13px;
    pointer-events: none;
    opacity: 0;
    color: var(--theme-primary, #18882e);
    box-shadow: 0 0 0 5px currentColor, 0 0 30px 5px currentColor;
    transition: opacity .4s ease;
}
.input-wrap:focus-within {
    border-color: var(--theme-primary, #18882e);
    background: #fbfef9;
    box-shadow: none;
}
.input-wrap:focus-within:before {
    opacity: .2;
    animation: input-energy-breathe 3s ease-in-out infinite;
}
.input-wrap > svg, .password-toggle {
    transition: color .3s ease;
}
.input-wrap:focus-within > svg,
.input-wrap:focus-within .password-toggle {
    color: var(--theme-primary, #18882e);
}
@keyframes input-energy-breathe {
    0%, 100% { opacity: .14; box-shadow: 0 0 0 4px currentColor, 0 0 24px 4px currentColor; }
    50% { opacity: .26; box-shadow: 0 0 0 7px currentColor, 0 0 38px 8px currentColor; }
}
@media (prefers-reduced-motion: reduce) {
    .input-wrap:focus-within:before { animation: none; }
}

/* 背景枝叶被微风吹动：枝干缓摆，叶片错峰轻颤。 */
.leaf-decoration {
    transform-origin: 80% 100%;
    animation: login-leaf-breeze 7s ease-in-out infinite;
}
.leaf-decoration svg > path:not(:first-child) {
    transform-box: view-box;
    animation: login-leaf-flutter 4.8s ease-in-out infinite;
}
.leaf-decoration svg > path:nth-child(2) { transform-origin: 104px 141px; animation-delay: -.8s; }
.leaf-decoration svg > path:nth-child(3) { transform-origin: 119px 168px; animation-delay: -2.1s; animation-duration: 5.4s; }
.leaf-decoration svg > path:nth-child(4) { transform-origin: 78px 85px; animation-delay: -1.5s; animation-duration: 4.3s; }
.leaf-decoration svg > path:nth-child(5) { transform-origin: 87px 109px; animation-delay: -3.2s; }
@keyframes login-leaf-breeze {
    0%, 100% { transform: rotate(-5deg) translateX(0); }
    35% { transform: rotate(7deg) translateX(5px); }
    65% { transform: rotate(2deg) translateX(2px); }
    82% { transform: rotate(-6deg) translateX(-3px); }
}
@keyframes login-leaf-flutter {
    0%, 100% { transform: rotate(-4deg); }
    40% { transform: rotate(8deg); }
    70% { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .leaf-decoration, .leaf-decoration svg > path:not(:first-child) { animation: none; }
}

/* 左上角太阳光晕：暖色柔光缓慢呼吸，光圈向外扩散。 */
.brand-header:before {
    width: 410px;
    height: 410px;
    top: -192px;
    left: -197px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 249, 196, .8) 0%,
        rgba(245, 244, 151, .48) 15%,
        rgba(218, 239, 124, .25) 34%,
        rgba(209, 237, 135, .1) 53%,
        rgba(209, 237, 135, 0) 72%);
    filter: blur(2px);
    pointer-events: none;
    animation: login-sun-breathe 7s ease-in-out infinite;
}
.brand-header:after {
    content: "";
    position: absolute;
    width: 238px;
    height: 238px;
    top: -106px;
    left: -111px;
    border: 1px solid rgba(248, 249, 176, .16);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(244, 244, 159, .1), inset 0 0 18px rgba(244, 244, 159, .07);
    pointer-events: none;
    animation: login-sun-ripple 6s ease-out infinite;
}
.topbar, .brand { z-index: 1; }
@keyframes login-sun-breathe {
    0%, 100% { transform: scale(.94); opacity: .7; }
    50% { transform: scale(1.2); opacity: 1; }
}
@keyframes login-sun-ripple {
    0% { transform: scale(.65); opacity: 0; }
    18% { opacity: .7; }
    100% { transform: scale(2.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-header:before { animation: none; }
    .brand-header:after { animation: none; opacity: 0; }
}

/* 登录34独立白蓝主题：仅覆盖视觉配色，保留原布局和交互。 */
:root {
    --theme-primary: #0754f8;
    --theme-on-primary: #fff;
    --theme-primary-soft: #edf2ff;
    --theme-primary-border: #dce5fb;
}
html, body { background: #fff; color: #15171c; }
.login-shell { background: #fff; }
.brand-header { background: #fff; color: #15171c; }
.brand-caption { color: #8b909b; }
.language-link { color: #181b21; }
.topbar { text-shadow: none; }
.brand h1, .card-heading h2 { color: #111216; }
.brand p { color: #8a8f99; }
.leaf-decoration { display: none; }
.brand-header:before {
    background: radial-gradient(circle,
        rgba(225, 236, 255, .9) 0%,
        rgba(225, 236, 255, .45) 26%,
        rgba(237, 243, 255, .2) 48%,
        rgba(255, 255, 255, 0) 72%);
}
.brand-header:after {
    border-color: rgba(114, 157, 255, .12);
    box-shadow: 0 0 22px rgba(120, 163, 255, .08), inset 0 0 18px rgba(120, 163, 255, .05);
}
.login-card {
    border-color: #e9ecf2;
    background: #fff;
    box-shadow: 0 12px 30px rgba(25, 45, 85, .035);
}
.heading-icon { background: #f3f4f6; color: #171a20; }
.field > label { color: #737b88; }
.input-wrap { background: #f4f5f7; border-color: #eceef2; }
.input-wrap > svg, .password-toggle { color: #7c8492; }
.input-wrap input { color: #181b21; }
.input-wrap input::placeholder { color: #9aa0aa; }
.input-wrap:focus-within { background: #fafbff; border-color: #0754f8; }
.input-wrap:focus-within > svg, .input-wrap:focus-within .password-toggle { color: #0754f8; }
.remember { color: #8a919e; }
.remember input { border-color: #ccd4e2; accent-color: #0754f8; }
.remember input:checked { border-color: #0754f8; background-color: #0754f8; }
.remember input:focus { outline-color: #a3bfff; }
.form-options a { color: #0754f8; }
.login-button { background: #0754f8; color: #fff; }
.login-button:hover { background: #0648d6; }
.privacy-note { color: #929baa; }
.app-link { border-color: #e9ecf2; background: #fff; color: #252a35; }
.app-icon { background: #f3f4f6; color: #181b21; }
.app-arrow { color: #9aa2af; }
.page-footer { color: #9ba3b1; }
.page-footer > span { background: #e0e5ed; }
a:focus-visible, button:focus-visible { outline-color: #a3bfff; }
.logo-light-orbit .logo-light-trail {
    fill: #a8c6ff;
    filter: drop-shadow(0 0 3px #659bff) drop-shadow(0 0 6px #a1c1ff);
}
@media (min-width: 768px) {
    body { background: #f7f8fb; }
    .login-shell { background: #fff; border-color: #e6eaf1; box-shadow: 0 18px 60px rgba(32, 49, 82, .06); }
}

/* 登录34移除左上角光晕装饰。 */
.brand-header:before, .brand-header:after { content: none; display: none; animation: none; }


/* 登录58：白底、鼠尾草绿与简洁圆形图标。 */
:root { --theme-primary:#365f50; --theme-on-primary:#fff; --theme-primary-soft:#eef3eb; --theme-primary-border:#dce5d8; color-scheme:light; }
html,body { background:#fff; color:#243f33; }
.login-shell,.brand-header { background:#fff; color:#243f33; }
.brand-caption { color:#8b9987; }
.language-link { color:#7b8875; }
.brand h1,.card-heading h2 { color:#243f33; }
.brand p { color:#8a9785; }
.brand-logo { background:#fff; box-shadow:none; }
.login-card { background:#fff; border-color:#dfe7db; box-shadow:none; }
.heading-icon,.app-icon { background:#eef3eb; color:#365f50; border-radius:50%; }
.field > label,.remember { color:#879580; }
.input-wrap { background:#f0f5ee; border-color:#dfe7d9; }
.input-wrap input { color:#243f33; }
.input-wrap input::placeholder { color:#a2ae9d; }
.input-wrap > svg,.password-toggle { color:#8a9f80; }
.input-wrap:focus-within { background:#f9fcf7; border-color:var(--theme-primary); }
.input-wrap:focus-within > svg,.input-wrap:focus-within .password-toggle { color:var(--theme-primary); }
.remember input { border-color:#cad6c3; accent-color:var(--theme-primary); }
.remember input:checked { background-color:var(--theme-primary); border-color:var(--theme-primary); }
.remember input:focus { outline-color:#a8bca0; }
.form-options a { color:#365f50; }
.login-button { background:#365f50; color:#fff; border-radius:12px; box-shadow:none; }
.login-button:hover { background:#2b4e41; }
.app-link { background:#fff; border-color:#dfe7db; color:#365f50; }
.app-arrow { color:#9dab94; }
a:focus-visible,button:focus-visible { outline-color:#a8bca0; }
.logo-light-orbit { top:-21px; right:-21px; bottom:-21px; left:-21px; }
.logo-light-orbit .logo-light-trail { fill:#d0e2c5; filter:drop-shadow(0 0 3px #a8c298) drop-shadow(0 0 6px #ccdec1); }
@media(min-width:768px) { body { background:#f0f4ed; } .login-shell { background:#fff; border-color:#dfe7db; box-shadow:0 18px 60px #45633b08; } }
