:root { color-scheme: light; font-family: "Songti SC", "STSong", Georgia, serif; color: #3c352c; background: #ded4bf; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { position: fixed; inset: 0; background: repeating-linear-gradient(0deg,#fff2 0 1px,#96836a08 1px 3px),linear-gradient(115deg,#e8dfcb,#ded4bf 55%,#d3c7b0); }
.login-main { height: var(--visible-height,100dvh); padding: max(24px,env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); display: flex; align-items: center; justify-content: center; }
.login-plate { width: 100%; max-width: 360px; padding: 30px 24px 18px; border-top: 2px solid #8f3d33; border-bottom: 1px solid #ae9d81; background: #eee5d040; box-shadow: 0 1px #fff7; }
header { text-align: center; }
h1 { margin: 0; font: italic 32px/1 Georgia,serif; letter-spacing: -1px; text-shadow: 0 1px #fff8; }
header span { display: block; margin-top: 8px; font: 9px Georgia,serif; letter-spacing: 3px; color: #837767; }
p { margin: 26px 0; text-align: center; font-size: 13px; color: #756755; letter-spacing: 2px; }
form { display: grid; gap: 12px; }
label { font-size: 12px; letter-spacing: 2px; }
input { width: 100%; min-width: 0; height: 48px; padding: 10px 12px; border: 2px solid #716c5b; border-radius: 1px; font: 18px Georgia,serif; background: #263027; color: #e8dbb1; box-shadow: inset 0 2px 5px #0006,0 1px #fff7; }
input:focus { outline: 2px solid #913d35; outline-offset: 3px; }
.login-key { position: relative; height: 48px; margin-top: 5px; display: flex; align-items: center; justify-content: center; border: 1px solid #78392e; border-radius: 1px; font: bold 15px "Songti SC","STSong",Georgia,serif; letter-spacing: 3px; color: #f1dfbf; background: linear-gradient(90deg,#79342c,#a15444 9%,#914134 85%,#78372c); box-shadow: inset 0 1px #e1a38270,inset 0 -4px #58261f50,0 3px 3px #745b3a40; cursor: pointer; touch-action: manipulation; }
.login-key .login-key-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.login-key:active { transform: translateY(2px); box-shadow: inset 0 2px 4px #4b1e1960; }
.login-key:has(input:disabled) { opacity: .6; }
.login-key:has(input:focus-visible) { outline: 2px solid #913d35; outline-offset: 4px; }
output { min-height: 32px; font-size: 12px; line-height: 1.5; color: #913d35; text-align: center; }
.keyboard-open .login-main { padding-top: 12px; padding-bottom: 12px; }
.keyboard-open .login-plate { padding: 16px 20px 8px; }
.keyboard-open p { margin: 12px 0; }
@media(max-height:480px) { .login-plate { padding-top: 16px; } p { margin: 12px 0; } }
