:root { color-scheme:light; --login-green:#16786d; --login-ink:#243b46; --login-muted:#5c707c; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:40px 24px; background:#f3f6f7; color:var(--login-ink); font-family:'Sarabun',sans-serif; font-size:16px; line-height:1.6; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
.login-shell { width:100%; max-width:1060px; display:grid; grid-template-columns:1.08fr 1fr; background:#fff; border:1px solid #dce7e1; border-radius:24px; box-shadow:0 16px 60px #284c3b0a; overflow:hidden; }
.login-identity { padding:40px 42px 26px; background:linear-gradient(145deg,#e9f3ed,#f3f8f5); display:flex; flex-direction:column; border-right:1px solid #dce7e1; }
.studio-brand { display:flex; align-items:center; gap:12px; color:var(--login-ink); text-decoration:none; font-weight:700; font-size:21px; }
.brand-mark { display:grid; place-items:center; width:46px; height:46px; border:1px solid #c3ddce; border-radius:12px; background:#f9fcfa; color:var(--login-green); font-size:25px; }
.studio-brand small { display:block; color:#61776b; font-size:10px; font-weight:500; letter-spacing:1.4px; }
.identity-copy { margin-top:46px; }
.eyebrow { color:#487261; font-size:14px; }
h1 { font-size:clamp(28px,3vw,37px); line-height:1.45; font-weight:600; letter-spacing:-.6px; margin:12px 0 14px; color:#284d3c; }
.identity-copy p { color:#587163; margin:0; font-size:15px; }
.engineering-sketch { margin:12px 0 6px; }
.engineering-sketch svg { display:block; width:100%; max-height:185px; }
.sketch-flow { stroke-dasharray:8 5; animation:sketch-flow 12s linear infinite; }
.system-tags { display:flex; flex-wrap:wrap; gap:8px 18px; color:#456656; font-size:13px; }
.system-tags span { display:flex; align-items:center; gap:6px; }
.system-tags i { color:var(--login-green); font-size:16px; }
.login-identity footer { color:#687e72; font-size:12px; margin-top:26px; padding-top:16px; border-top:1px solid #d4e4da; }
.login-panel { display:grid; align-items:center; padding:48px; min-width:0; }
.login-form-wrap { width:100%; max-width:350px; margin-inline:auto; }
.login-symbol { width:46px; height:46px; border-radius:12px; background:#edf6f1; color:var(--login-green); display:grid; place-items:center; font-size:23px; margin-bottom:22px; }
h2 { font-size:28px; line-height:1.4; font-weight:600; margin:0 0 8px; }
.form-intro { color:var(--login-muted); font-size:14px; margin:0 0 28px; }
.login-field { margin-bottom:20px; }
.login-field label { display:block; font-size:14px; font-weight:600; margin-bottom:8px; }
.field-control { display:flex; align-items:center; border:1px solid #d9e4df; border-radius:10px; background:#f8faf9; min-height:50px; transition:border-color .15s,box-shadow .15s; }
.field-control:focus-within { border-color:#448f77; box-shadow:0 0 0 3px #16786d16; background:#fff; }
.field-control > i { color:#72887b; padding-left:14px; }
.field-control input { width:100%; min-width:0; border:0; outline:0; color:var(--login-ink); padding:12px; background:transparent; font-size:16px; border-radius:10px; }
.field-control input::placeholder { color:#819187; }
.password-toggle { display:grid; place-items:center; flex-shrink:0; min-width:44px; min-height:44px; margin-right:3px; background:transparent; border:0; border-radius:7px; color:#5b7766; cursor:pointer; }
.password-toggle:hover { background:#e9f3ed; }
.login-submit { width:100%; min-height:50px; display:flex; align-items:center; justify-content:center; gap:12px; margin-top:28px; border:1px solid var(--login-green); border-radius:10px; background:var(--login-green); color:#fff; font-weight:600; cursor:pointer; transition:background .15s; }
.login-submit:hover { background:#105e56; }
button:focus-visible,a:focus-visible { outline:3px solid #6cb29a; outline-offset:3px; }
.access-note { display:flex; align-items:start; justify-content:center; gap:8px; margin-top:28px; border-top:1px solid #e7eeea; padding-top:20px; color:#687c70; font-size:13px; }
.access-note i { color:#49856a; margin-top:2px; }
.access-note p { margin:0; }
.login-error { display:flex; align-items:start; gap:8px; background:#fff3f1; color:#a23e37; border:1px solid #f0d3ce; padding:10px 12px; border-radius:9px; font-size:14px; margin-bottom:20px; }
@keyframes sketch-flow { to { stroke-dashoffset:-130; } }
@media(max-width:850px) { body { padding:24px; } .login-shell { max-width:560px; grid-template-columns:minmax(0,1fr); } .login-identity { padding:25px 30px; border-right:0; border-bottom:1px solid #dce7e1; } .identity-copy { margin-top:20px; } h1 { font-size:27px; margin:8px 0; } h1 br { display:none; } .identity-copy p { font-size:14px; } .desktop-break { display:none; } .engineering-sketch,.login-identity footer { display:none; } .system-tags { margin-top:18px; } .login-panel { padding:32px 30px; } .login-form-wrap { max-width:none; } .login-symbol { display:none; } }
@media(max-width:420px) { body { padding:16px 12px; align-items:start; } .login-shell { border-radius:18px; } .login-identity { padding:22px; } .identity-copy { margin-top:16px; } h1 { font-size:24px; } .login-panel { padding:26px 22px; } h2 { font-size:25px; } .form-intro { margin-bottom:22px; } .system-tags { gap:8px 14px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
