:root{color-scheme:light;font-family:Arial,sans-serif;color:#29372f;background:#f4f6f4}*{box-sizing:border-box}body{margin:0;line-height:1.65}main{max-width:1120px;margin:6vh auto;padding:24px}.auth-shell{display:grid;grid-template-columns:1fr 1fr;gap:0}.story{background:#eaf2eb;padding:55px 42px;border:1px solid #dce5df;border-radius:22px 0 0 22px}.story h1{font-size:44px;line-height:1.2;margin:20px 0 0}.region{font-size:22px;color:#667a6b;margin:12px 0 28px}.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:700;color:#667e6c}.story>p:last-of-type{font-size:17px}.boundary{margin-top:65px;border-top:1px solid #cedbd1;padding-top:25px;font-size:14px;color:#5c7062}.auth-panel{background:white;border:1px solid #dce5df;border-left:0;border-radius:0 22px 22px 0;padding:36px 40px}.logos{display:flex;gap:28px;align-items:center;margin-bottom:28px}.logos img{width:90px;max-height:28px;object-fit:contain}.logos img:last-child{width:120px}h2{font-size:23px;line-height:1.35;margin:18px 0 12px}.auth-panel p{font-size:14px;color:#5e7163}label{display:block;font-size:13px;font-weight:600;margin:15px 0 6px}input{display:block;width:100%;border:1px solid #cbd7cf;border-radius:7px;padding:12px;font:inherit;color:#26392d}button{font:inherit;font-size:13px;font-weight:600;border-radius:7px;padding:11px 16px;background:#da2921;color:#fff;border:1px solid #da2921;cursor:pointer;line-height:1.4}button.secondary{background:#fff;border-color:#c4d1c8;color:#4e6555}button.text-button{display:block;border:0;background:none;color:#4e6555;text-decoration:underline;padding:12px 0}button:disabled{cursor:not-allowed;background:#e8ede9;border-color:#d2dcd5;color:#697b6e}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}form>button{margin-top:16px}.apply{margin-top:28px;padding-top:20px;border-top:1px solid #e1e8e3}.apply h2{font-size:18px}.notice{border:1px solid #d2dfd6;background:#f3f7f4;padding:12px;border-radius:7px}.small{font-size:12px!important;color:#708176!important}.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}a{color:#396947}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #b17c21;outline-offset:3px}[hidden]{display:none!important}.admin-shell{display:block;max-width:1100px}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-card{background:#fff;border:1px solid #d6e0d8;border-radius:12px;padding:25px;margin:24px 0}.row{border-top:1px solid #e2e8e4;padding:18px 0;display:flex;justify-content:space-between;align-items:center;gap:20px}.row:first-child{border-top:0}.row strong,.row small{display:block;overflow-wrap:anywhere}.row .button-row{margin:0}.muted{color:#677c6d}.pill{display:inline-block;background:#eaf3ec;color:#496552;border-radius:30px;padding:3px 10px;font-size:12px}.error{color:#a42b27!important}.admin-header h1{line-height:1.3}.admin-header p{margin:5px 0}.admin-card h2{font-size:21px}@media(max-width:720px){main{padding:16px;margin:0 auto}.auth-shell{grid-template-columns:1fr}.story{padding:28px;border-radius:15px 15px 0 0}.story h1{font-size:33px}.story .region{font-size:18px;margin:10px 0}.boundary{margin-top:22px;padding-top:18px}.auth-panel{border-left:1px solid #dce5df;border-top:0;border-radius:0 0 15px 15px;padding:25px}.admin-header{align-items:flex-start;flex-direction:column}.row{align-items:flex-start;flex-direction:column;gap:12px}.admin-card{padding:20px}.button-row button{flex:1}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
/* Motion layer (2026-10-29): the two halves rise in, each form fades in when it opens, the code field reads as a code,
   and a refused request shakes its form once. Switched off under prefers-reduced-motion. */
@keyframes cn-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes cn-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(3px)}30%,50%,70%{transform:translateX(-6px)}40%,60%{transform:translateX(6px)}}
.story,.auth-panel{animation:cn-rise .55s cubic-bezier(.2,.7,.2,1) both}.auth-panel{animation-delay:.08s}
#login-form:not([hidden]),#code-form:not([hidden]),#application-form:not([hidden]){animation:cn-rise .35s ease-out both}
input{transition:border-color .18s ease,box-shadow .18s ease}input:focus{border-color:#5b8a6c;box-shadow:0 0 0 4px rgba(57,105,71,.12);outline:none}
#login-code{font-family:Consolas,"Courier New",monospace;font-size:22px;letter-spacing:.38em;text-align:center;font-variant-numeric:tabular-nums;padding:12px 8px}
#login-code::placeholder{color:#c3cec7;letter-spacing:.3em}
button{transition:background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
button:not(:disabled):not(.text-button):hover{transform:translateY(-1px);box-shadow:0 6px 14px -10px rgba(0,0,0,.45)}
button:not(:disabled):not(.secondary):not(.text-button):hover{background:#c41f18;border-color:#c41f18}
form.shake{animation:cn-shake .45s ease both}
#login-status:not(:empty),#application-status:not(:empty){animation:cn-rise .3s ease-out both}
@media(prefers-reduced-motion:reduce){.story,.auth-panel,#login-form,#code-form,#application-form,form.shake,#login-status,#application-status{animation:none!important}button:hover{transform:none!important}}
