/* 由 tools/site-polish-build.cjs 從 ../redesign-preview/login-new/login-new.css 產生，請改來源後重跑。 */
/* 登入頁修改（2026-11-18 預覽，第 2 版）：說明見 login-new.js。 */
html.ln-on #login-form .ln-gone{display:none!important}
/* ── 標題：積木字 ── */
html.ln-on #login-title.ln-title{display:flex;flex-direction:column;align-items:center;gap:8px;margin:2px 0 12px;padding:0;font-size:0;line-height:1;text-align:center}
.ln-hi{display:inline-flex;align-items:center;gap:8px;padding:5px 16px 6px;border-radius:999px;background:linear-gradient(#F1F9E6,#E3F2D3);color:#3E7A2E;font:900 17px/1 Park,"GenSenRounded","Microsoft JhengHei",sans-serif;letter-spacing:.14em;box-shadow:inset 0 -2px 0 rgba(60,110,40,.14)}
.ln-hi i{font-style:normal;font-size:13px;color:#F5A623;animation:ln-tw 1.8s ease-in-out infinite}.ln-hi i:last-child{animation-delay:.9s;color:#6BBF59}
@keyframes ln-tw{0%,100%{opacity:.35;transform:scale(.7)}50%{opacity:1;transform:scale(1.2) rotate(20deg)}}
.ln-logo{display:flex;flex-direction:column;align-items:center;gap:7px;font-family:Park,"GenSenRounded","Microsoft JhengHei",sans-serif;font-weight:900}
.ln-row{display:flex;gap:5px}
.ln-blk{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--c);color:#fff;font-size:22px;line-height:1;text-shadow:0 2px 0 rgba(0,0,0,.2);box-shadow:inset 0 -4px 0 rgba(0,0,0,.16),inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 rgba(0,0,0,.13),0 6px 10px rgba(60,80,40,.12);animation:ln-hop 2.8s ease-in-out infinite;animation-delay:calc(var(--i)*.13s)}
.ln-row.s .ln-blk:nth-child(odd){rotate:-5deg}.ln-row.s .ln-blk:nth-child(even){rotate:4deg;translate:0 3px}
.ln-blk.b{width:58px;height:58px;border-radius:16px;font-size:38px;box-shadow:inset 0 -7px 0 rgba(0,0,0,.16),inset 0 3px 0 rgba(255,255,255,.5),0 5px 0 rgba(0,0,0,.13),0 10px 14px rgba(60,80,40,.14)}
@keyframes ln-hop{0%,62%,100%{transform:none}72%{transform:translateY(-8px) rotate(-6deg)}82%{transform:translateY(0) scale(1.08,.92)}92%{transform:none}}
/* ── 第 2 版：帳號密碼登入是主角 ── */
/* 卡片本身：白底、綠色外圈、柔和的綠光，在白色畫面上一眼就看到 */
html.ln-on #login-form{background:#fff!important;border:0!important;box-shadow:0 0 0 4px #fff,0 0 0 8px #9CCB7A,0 0 0 9px #7FB25E,0 22px 44px rgba(60,120,40,.26),0 0 60px rgba(150,210,110,.35)!important}
.ln-blk{width:30px;height:30px;font-size:20px;border-radius:9px}.ln-blk.b{width:52px;height:52px;font-size:34px;border-radius:15px}
.ln-hi{font-size:15px;padding:4px 14px 5px}
html.ln-on #login-title.ln-title{gap:6px;margin:0 0 14px}
/* 一條完整的綠色標題帶（兩頭都是圓的，沒有被裁掉的邊線） */
.ln-head{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 12px;padding:9px 14px 10px;border-radius:999px;background:linear-gradient(#6FB04A,#4E8A2C);color:#fff;font:900 19px/1 Park,"GenSenRounded","Microsoft JhengHei",sans-serif;letter-spacing:.12em;box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 4px 0 #3A6B1F,0 8px 14px rgba(60,110,30,.22)}
.ln-head svg{width:24px;height:24px;flex:none;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ln-head b{font-weight:900;text-shadow:0 2px 0 rgba(0,0,0,.18)}
/* 欄位和送出鍵再清楚一點 */
html.ln-on #login-form label[for]{font-weight:900;color:#2F5F23}
html.ln-on #login-form input:not([type=checkbox]){border-color:#B9D9A4}
html.ln-on #login-form input:not([type=checkbox]):focus{border-color:#5B8F2E;box-shadow:0 0 0 4px rgba(107,191,89,.28);outline:none}
html.ln-on #login-submit{font-size:19px;box-shadow:0 5px 0 #33611B,0 10px 18px rgba(60,110,30,.28)}
/* 班級小朋友：卡片最下面一行小小的連結（少數人用，不搶眼） */
html.ln-on #login-form a.ln-kidlink{display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;margin:6px auto 0;padding:3px 10px 3px 6px;border:1px solid #DCE6D4;border-radius:999px;background:transparent;box-shadow:none;color:#7B8C74;font:700 12.5px/1.2 Park,"GenSenRounded","Microsoft JhengHei",sans-serif;text-decoration:none;animation:none}
html.ln-on #login-form a.ln-kidlink img{width:18px;height:18px;object-fit:contain;opacity:.75}
html.ln-on #login-form a.ln-kidlink i{font-style:normal;font-size:14px;line-height:1}
html.ln-on #login-form a.ln-kidlink:hover,html.ln-on #login-form a.ln-kidlink:focus-visible{color:#3E7A2E;border-color:#9CCB7A;background:#F4FAEE}
html.ln-on #login-form p.small{margin-bottom:0}
@media (max-height:700px){.ln-blk{width:26px;height:26px;font-size:17px;border-radius:8px}.ln-blk.b{width:46px;height:46px;font-size:30px;border-radius:13px}.ln-logo{gap:5px}html.ln-on #login-title.ln-title{margin-bottom:10px}.ln-head{padding:7px 12px 8px;font-size:17px;margin-bottom:8px}}
@media (prefers-reduced-motion:reduce){.ln-blk,.ln-hi i{animation:none!important}}/* 卡片外圈要蓋過原本的樣式（原本的選擇器比較強） */
html.ln-on body .login-layout form#login-form.fp-login{background:#fff!important;border:0!important;box-shadow:0 0 0 5px #fff,0 0 0 9px #8CC56A,0 0 0 10px #6FA850,0 22px 44px rgba(60,120,40,.28),0 0 70px rgba(150,210,110,.45)!important}
/* 矮螢幕（平板橫放）：卡片離白色畫面上下緣很近，外圈收細一點、柔光收小，才不會看起來被切到 */
@media (max-height:700px){html.ln-on body .login-layout form#login-form.fp-login{box-shadow:0 0 0 3px #fff,0 0 0 6px #8CC56A,0 0 0 7px #6FA850,0 10px 22px rgba(60,120,40,.24)!important}}
