/* 沿用博客的纸白、铜棕和宋体标题，仅作用于前台登录/注册页。 */
.site-login{margin:0;min-height:100vh;box-sizing:border-box;padding:72px 24px 48px;background:#fbf9f5;color:#1f1e1b;font:14px/1.6 "Helvetica Neue",Helvetica,"PingFang SC","Microsoft YaHei",sans-serif}
.site-login *{box-sizing:border-box}
.site-login-panel{width:440px;max-width:100%;margin:0 auto;padding:40px;border:1px solid #e8e2d5;border-top:3px solid #a65d37;background:#fffdf9}
.site-login-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 8px}
.site-login-brand img{object-fit:contain;flex-shrink:0}
.site-login-brand h1{margin:0;font-family:"Songti SC","Noto Serif CJK SC","SimSun",Georgia,serif;font-size:30px;font-weight:600;line-height:1.5}
.site-login-subtitle{text-align:center;color:#726c61;margin:0 0 30px;font-size:13px}
.site-login-form{display:grid;gap:20px}
.site-login input:not([type=hidden]){width:100%;min-width:0;height:44px;border:1px solid #e8e2d5;border-radius:3px;padding:0 14px;background:#fff;color:#1f1e1b;font:inherit}
.site-login input:focus{outline:none;border-color:#a65d37;box-shadow:0 0 0 2px rgb(166 93 55 / 12%)}
.site-login input::placeholder{color:#81796d}
.site-login-captcha{display:flex;align-items:center;gap:13px}
.site-login-captcha input{flex:1;width:0!important}
.site-login .site-account-captcha-refresh{height:44px;padding:1px;border:1px solid #e8e2d5;border-radius:3px;background:#fff;flex-shrink:0;cursor:pointer}
.site-login .site-account-captcha-refresh img{display:block;width:120px;height:40px}
.site-login-submit{height:44px;border:0;border-radius:3px;background:#a65d37;color:#fff;font-family:inherit;font-size:16px;font-weight:550;cursor:pointer}
.site-login-submit:hover{background:#874623}
.site-login-links{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
.site-login a{color:#726c61;text-decoration:none;font-size:13px}
.site-login a:hover{color:#a65d37}
.site-login-oauth{margin-top:28px}
.site-login-divider{display:flex;align-items:center;gap:12px;color:#726c61;font-size:12px;margin-bottom:16px}
.site-login-divider:before,.site-login-divider:after{content:"";height:1px;flex:1;background:#e8e2d5}
.site-login-providers{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.site-login-providers form{margin:0}
.site-login-provider{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:92px;min-height:88px;padding:12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#58544c;font:inherit;font-size:12px;cursor:pointer}
.site-login-provider img{object-fit:contain}
.site-login-provider:not(:disabled):hover{border-color:#e8e2d5;background:#f5f1e8}
.site-login-provider:disabled{cursor:not-allowed;color:#81796d}
.site-login-hint{text-align:center;color:#726c61;font-size:12px;margin:12px 0 0}
.site-login-error{color:#c23b35;font-size:13px;margin:0 0 18px;overflow-wrap:anywhere}
.site-login-notice{color:#42714b;background:#edf5ef;padding:10px;margin:0 0 18px}
.site-login :focus-visible{outline:2px solid #a65d37;outline-offset:3px}
.site-login-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:480px){.site-login{padding:28px 16px}.site-login-panel{padding:30px 22px}.site-login-providers{gap:16px}}
@media(max-height:650px){.site-login{padding-top:40px}}
@media(prefers-reduced-motion:reduce){.site-login{background-image:none}}

/* 授权等待覆盖原表单，沿用前台纸白和铜棕配色。 */
.site-login-panel{position:relative}
.site-login .site-login-overlay{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:28px;background:rgb(255 253 249 / 96%);text-align:center}
.site-login .site-login-overlay[hidden],.site-login .site-login-overlay [hidden]{display:none}
.site-login-overlay h2{margin:0;font-size:20px;font-family:"Songti SC","SimSun",serif}
.site-login-overlay p{margin:0;color:#58544c;line-height:1.9}
.site-login .site-login-overlay a{color:#874623;font-size:14px;min-height:44px;display:flex;align-items:center}
.site-login-overlay button{border:1px solid #d6c8b9;border-radius:4px;background:#fffdf9;color:#58544c;padding:10px 20px;font:inherit;min-height:44px;cursor:pointer}
.site-login-overlay button:disabled{opacity:.6;cursor:wait}
.site-login-spinner{width:36px;height:36px;border:3px solid #eee3d8;border-top-color:#a65d37;border-radius:50%;animation:site-login-spin .8s linear infinite}
#site-oauth-error:empty{display:none}
@keyframes site-login-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.site-login-spinner{animation:none}}
