:root{--brand:#d68c0e;--brand-dark:#995700;--text:#303238;--muted:#78756f;--line:#e8e4dc;--warm:#faf8f4;--error:#a43131}
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","Microsoft JhengHei",sans-serif;color:var(--text);background:#fff;line-height:1.65;-webkit-font-smoothing:antialiased}a{color:var(--brand-dark);text-underline-offset:4px}.auth-shell{display:grid;grid-template-columns:minmax(360px,43%) 1fr;min-height:100svh}.brand-panel{padding:46px clamp(32px,4.5vw,80px) 28px;display:flex;flex-direction:column;background:var(--brand);color:white;position:sticky;top:0;height:100svh;overflow:hidden}.brand-panel:after{content:"";position:absolute;width:380px;height:380px;border:1px solid #ffffff18;border-radius:50%;right:-245px;bottom:40px;pointer-events:none}.brand{display:flex;gap:18px;align-items:center;text-decoration:none;color:white;position:relative;z-index:1}.brand img{display:block;width:154px;height:auto;object-fit:contain}.brand-divider{height:25px;width:1px;background:#ffffff70;flex-shrink:0}.brand-caption{font-size:17px;font-weight:650;white-space:nowrap;letter-spacing:.05em}.brand-content{margin:auto 0;padding:60px 0 36px;position:relative;z-index:1}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;line-height:1.8;margin:0 0 16px}.brand-content>.eyebrow{color:#fff5df;font-size:10px;letter-spacing:.15em}.brand-content h1{font-size:clamp(31px,3.1vw,48px);font-weight:700;line-height:1.5;letter-spacing:.025em;margin:0 0 22px}.brand-description{font-size:15px;line-height:2;color:#fff5df;margin:0}.patrol-graphic{max-width:420px;margin:44px 0 32px}.patrol-graphic svg{width:100%;display:block;overflow:visible}.route-back{stroke:#ffffff50;stroke-width:2;stroke-dasharray:5 7}.route-front{stroke:#fff8df;stroke-width:2}.patrol-graphic circle{fill:#d68c0e;stroke:white;stroke-width:2}.patrol-graphic .route-halo{fill:#ffffff14;stroke:#ffffff50;stroke-width:1}.patrol-graphic .route-active{fill:white;stroke:white}.route-check{stroke:#a46500;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.route-label{display:block;text-align:right;font-size:11px;color:#fff5df;letter-spacing:.1em;margin-top:5px}.brand-tags{display:flex;gap:12px;flex-wrap:wrap}.brand-tags span{font-size:12px;border:1px solid #ffffff5c;border-radius:4px;padding:5px 12px;color:#fffaf0}.brand-footer{font-size:11px;letter-spacing:.12em;margin:0;color:#fff0d4}.form-panel{padding:56px clamp(30px,6vw,110px) 22px;display:flex;flex-direction:column;align-items:center;min-width:0}.form-wrap{width:100%;max-width:410px}.login-wrap{margin:auto 0;padding:40px 0 20px}.register-wrap{max-width:560px}.form-wrap>.eyebrow{color:var(--brand-dark)}h2{font-size:32px;line-height:1.4;margin:0 0 14px;letter-spacing:.04em;font-weight:700}.intro{color:var(--muted);font-size:14px;line-height:1.9;margin:0 0 34px}.field{margin-bottom:23px;min-width:0}label{display:block;font-size:13px;margin-bottom:9px;font-weight:650;color:#47443f}input{width:100%;height:50px;border:1px solid #dedad2;border-radius:6px;padding:12px 14px;font:inherit;font-size:14px;color:var(--text);background:#fff;transition:border-color .15s,box-shadow .15s}input::placeholder{color:#a5a09a;opacity:1}input:hover{border-color:#b9ae9c}input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px #d68c0e1c}button:focus-visible,a:focus-visible{outline:3px solid var(--brand-dark);outline-offset:4px}.password-input{position:relative}.password-input input{padding-right:68px}.password-toggle{position:absolute;right:8px;top:5px;min-width:48px;min-height:40px;border:0;border-radius:4px;background:none;color:#766b59;font:inherit;font-size:12px;cursor:pointer}.password-toggle:hover{background:var(--warm);color:var(--brand-dark)}.button{width:100%;min-height:50px;padding:13px 20px;border:1px solid transparent;border-radius:6px;background:var(--brand-dark);color:#fff;font:inherit;font-size:14px;font-weight:650;letter-spacing:.08em;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;transition:background .15s,transform .15s}.button:hover{background:#804900}.button:active{transform:translateY(1px)}.button:disabled{opacity:.6;cursor:wait}.button span{font-size:20px;font-weight:400;line-height:1}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}fieldset{border:0;padding:0;margin:34px 0 28px}legend{width:100%;border-bottom:1px solid var(--line);padding:0 0 13px;margin-bottom:22px;font-size:15px;font-weight:650}legend span{display:inline-grid;place-items:center;background:#fcf1dc;color:var(--brand-dark);width:28px;height:28px;border-radius:50%;font-size:11px;margin-right:9px}.optional,.field small,.section-hint,.registration-note{font-size:12px;color:var(--muted)}.field small{display:block;margin-top:7px;line-height:1.6}.section-hint{margin:-8px 0 20px}.required{color:var(--brand-dark)}.optional{font-weight:400;margin-left:7px}.registration-note{line-height:1.9;background:var(--warm);border-left:3px solid #e8bb6c;border-radius:0 5px 5px 0;padding:14px 16px;margin:0 0 22px}.notice{padding:14px 16px;margin:20px 0;border:1px solid;border-radius:6px;font-size:13px;line-height:1.8}.notice ul{margin:4px 0 0;padding-left:19px}.notice strong{font-weight:650}.error{color:var(--error);background:#fff6f4;border-color:#f0d0c9}.success{color:#30663c;background:#f4fbf4;border-color:#cce5cc}.switch-page{text-align:center;border-top:1px solid var(--line);padding-top:25px;margin-top:20px;font-size:13px;color:var(--muted)}.switch-page a{font-weight:650;margin-left:6px;text-decoration:none}.switch-page a:hover{text-decoration:underline}.back-link{display:inline-block;font-size:12px;margin-bottom:32px;text-decoration:none;color:var(--muted)}.back-link:hover{color:var(--brand-dark)}.page-footer{font-size:10px;letter-spacing:.06em;margin:34px 0 0;text-align:center;color:#96918a}.form-status{font-size:12px;min-height:20px;margin:9px 0 0;color:var(--muted)}.account-details{padding:22px 24px;background:var(--warm);border:1px solid var(--line);border-radius:8px;margin:24px 0}.account-details dd{margin:4px 0 17px;overflow-wrap:anywhere}.account-details dd:last-child{margin-bottom:0}.account-details dt{font-size:11px;color:var(--muted)}
@media(min-width:1600px){.form-panel{padding-top:70px}.brand-panel{padding-top:60px}.brand-content h1{font-size:50px}}
@media(max-width:1100px){.brand-panel{padding:36px 30px 24px}.brand{gap:12px}.brand img{width:126px}.brand-caption{font-size:14px}.form-panel{padding:48px 36px 24px}.brand-content h1{font-size:32px}.brand-description{font-size:13px}}
@media(max-width:760px){.auth-shell{display:block}.brand-panel{height:auto;position:relative;padding:22px 24px;overflow:visible}.brand-panel:after,.brand-content,.brand-footer{display:none}.brand img{width:122px}.brand-divider{height:21px}.brand-caption{font-size:14px}.brand{gap:14px}.form-panel{padding:36px 24px 24px}.login-wrap{margin:16px 0;padding:12px 0 6px}.register-wrap{max-width:560px}.field-row{grid-template-columns:1fr;gap:0}h2{font-size:28px}.intro{font-size:13px;margin-bottom:28px}.back-link{margin-bottom:24px}.page-footer{margin-top:40px}.eyebrow{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
/* 機構識別與圖形驗證碼沿用既有品牌配色。 */
#organization_code,#captcha_answer{text-transform:uppercase;letter-spacing:.12em}.text-button{background:none;border:0;padding:4px 6px;color:var(--brand-dark);font:inherit;font-size:12px;text-decoration:underline;cursor:pointer}.captcha-row{display:flex;align-items:center;gap:14px;margin-bottom:12px}.captcha-image-wrap{width:210px;height:70px;max-width:70%;background:var(--warm);border:1px solid var(--line);border-radius:6px;overflow:hidden}.captcha-image-wrap img{display:block;width:100%;height:100%;object-fit:contain}.captcha-refresh{border:1px solid var(--line);background:white;padding:10px 12px;border-radius:6px;color:var(--brand-dark);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.captcha-refresh:hover{background:var(--warm)}.captcha-refresh:disabled{opacity:.5;cursor:wait}
.language-switch{display:flex;align-items:center;gap:10px;font-size:11px;white-space:nowrap}.language-switch a{color:#8b8275;text-decoration:none;padding:6px 3px}.language-switch a[aria-current]{color:#995700;font-weight:650}.language-switch a:hover{text-decoration:underline}.language-switch>span{color:#d1c9bd}.form-panel>.language-switch{align-self:flex-end;margin:-24px 0 30px}html[lang=en] .brand-caption{font-size:14px;white-space:normal}html[lang=en] .brand-content h1{letter-spacing:0;font-size:clamp(30px,3.1vw,46px)}@media(max-width:760px){.form-panel>.language-switch{margin:-18px 0 20px}}
