/* Shared sign-in visual system: existing brand assets and one local background. */
.auth-layout{--auth-ink:#173d42;--auth-muted:#788487;--auth-accent:#ee762b;position:relative;isolation:isolate;display:grid;grid-template-columns:1.04fr 1fr;align-items:stretch;gap:0;width:100%;max-width:1160px;margin:34px auto 18px;padding:0;min-height:596px;overflow:hidden;border:1px solid #e9e5dc;border-radius:22px;background:#f5f0e5 url('/images/auth-background-v1.png') center center/cover no-repeat;box-shadow:0 20px 70px #34463b0a;color:var(--auth-ink)}
.auth-story{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:44px 38px 30px;overflow:hidden}
.auth-story:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#f9f4eaed 0%,#f8f3eae6 40%,#f8f3ea00 68%)}
.auth-story-content{position:relative;z-index:1}.auth-story-content>.eyebrow{display:inline-flex;align-items:center;gap:10px;margin:0 0 23px;padding:0;color:#54736e;opacity:1;font-size:11px;letter-spacing:1.8px;font-weight:500}
.auth-story-content>.eyebrow:before{content:'';width:20px;height:1px;background:#5b9187}
.auth-story-content h1,.auth-story-content h2{font-size:36px;letter-spacing:-.5px;line-height:1.55;font-weight:600;color:#1e4648;margin:0}
.auth-story-content>p{font-size:13px;color:#6c7e76;line-height:1.9;max-width:310px;margin:18px 0 0}
.auth-story-note{align-self:flex-start;position:relative;z-index:1;display:flex;align-items:center;gap:9px;padding:8px 12px;font-size:10px;line-height:1.6;letter-spacing:.5px;color:#607269;background:#fffaf0c9;border:1px solid #fffdf1b3;border-radius:5px;backdrop-filter:blur(10px);max-width:100%}
.auth-story-note>span{width:5px;height:5px;border-radius:50%;background:#6f9f91;flex:none}
.auth-panel{display:flex;align-items:center;min-width:0;padding:26px 26px 26px 0}
.auth-layout .auth-card{width:100%;max-width:none;min-width:0;margin:0;padding:30px 34px 27px;border:1px solid #ffffffcc;border-radius:15px;background:#fffffff5;box-shadow:0 12px 34px #303c2e08;color:#293c42}
.auth-card-brand{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#3f797c;font-size:12px;font-weight:600;letter-spacing:1px;margin:0 0 19px}
.auth-card-brand>span{font-size:8px;letter-spacing:1.3px;font-weight:400;color:#a2aaa7}
.auth-layout .auth-card h1,.auth-layout .auth-card h2{font-size:25px;font-weight:600;line-height:1.5;letter-spacing:0;color:#253d42;margin:0}
.auth-layout .auth-card>.muted{font-size:12px;line-height:1.9;color:#8b9798;margin:8px 0 24px}
.auth-layout .auth-card label{font-size:12px;color:#697c7e;line-height:1.6;margin:15px 0}
.auth-layout .auth-card input:not([type=checkbox]),.auth-layout .auth-card select{width:100%;min-width:0;min-height:44px;height:44px;padding:10px 12px;border:1px solid #e2e8e6;border-radius:7px;background:#fcfdfc;box-shadow:none;color:#2d4549;font-size:13px;line-height:22px;margin-top:7px}
.auth-layout .auth-card input::placeholder{color:#adb6b5;opacity:1}
.auth-layout .auth-card input:focus{outline:2px solid #b8d6ce;outline-offset:1px;border-color:#abc9c0;background:#fff}
.auth-layout .auth-card .login-captcha-row{grid-template-columns:minmax(0,1fr) 126px;gap:10px;margin-top:7px;align-items:stretch}
.auth-layout .auth-card .login-captcha-row>input{margin:0;height:44px;min-height:44px}
.auth-layout .auth-card .login-captcha-refresh{width:126px!important;height:44px;min-height:44px;max-height:44px;border-color:#e0e8e5!important;background:#f5f8f6!important;border-radius:7px;overflow:hidden}
.auth-layout .auth-card .login-captcha-refresh img{width:100%;height:100%;object-fit:contain}
.auth-layout .auth-card .code-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;margin-top:7px}
.auth-layout .auth-card .code-input>input{margin:0}
.auth-layout .auth-card .code-input>button{height:44px;margin:0;padding:0 14px;border:1px solid #f2d8c5;background:#fff8f1;color:#ce7b3e;border-radius:7px;font-size:12px;white-space:nowrap}
.auth-layout .auth-card>.button{display:flex;width:100%;min-height:46px;justify-content:space-between;gap:10px;margin-top:21px;padding:11px 18px;border-radius:7px;background:#ed7a34;color:#fff;font-size:14px;font-weight:500;box-shadow:0 5px 13px #e6944e12;transition:background .18s}
.auth-layout .auth-card>.button:hover{background:#db6c2b}.auth-layout .auth-card>.button:disabled{opacity:.55;cursor:wait}
.auth-layout .student-login-links{font-size:12px;margin:17px 0 0;gap:18px}
.auth-layout .student-login-links a{color:#8b9695}.auth-layout .student-login-links button{color:#c67e4e;font-size:12px}
.auth-layout .login-consent{font-size:11px;line-height:1.9;gap:0;margin:21px 0 0;padding-top:17px;border-top:1px solid #edf0ed;color:#8e9b99}
.auth-layout .login-consent label{display:inline-flex;align-items:center;font-size:11px;color:#8e9b99;font-weight:400;margin:0;line-height:1.9;gap:6px}
.auth-layout .login-consent input[type=checkbox]{width:14px;height:14px;min-height:0;margin:0;accent-color:#4c8d84}
.auth-layout .login-consent button{font-size:11px;line-height:1.9;color:#b98053}
.auth-layout .wechat-login-button{font-size:12px;min-height:42px;border-radius:7px;margin-top:16px}
.auth-reset .auth-story-content h1{font-size:31px}.auth-reset .auth-card>p:last-child{font-size:12px;color:#9ba5a1;margin:18px 0 0;text-align:center}
/* A dedicated management entrance keeps the same visual language and actual brand. */
.auth-admin-page{min-height:100dvh;background:#f7f8f6;color:#253d42}
.auth-admin-page>.auth-admin-header{max-width:1160px;width:calc(100% - 64px);height:94px;margin:auto;padding:0;border:0;background:none}
.auth-brand{display:flex;align-items:center;gap:24px}.auth-brand>img{display:block;width:190px;height:auto;max-width:100%;object-fit:contain}
.auth-brand>span{border-left:1px solid #dfe7e1;padding:6px 0 6px 22px;font-size:12px;font-weight:400;letter-spacing:1px;color:#8b9a95;white-space:nowrap}
.auth-admin-page>.auth-admin-header>.auth-return{display:flex;align-items:center;gap:12px;font-size:12px;color:#7e908b}
.auth-admin-page>.auth-admin-main{display:block;max-width:none;margin:0;padding:5px 32px 0}
.auth-admin-layout{max-width:1120px;min-height:570px;margin:14px auto 12px;grid-template-columns:1.04fr 1fr}
.auth-admin-layout .auth-story{padding:49px 42px 31px}.auth-admin-layout .auth-story-content h2{font-size:36px}
.auth-admin-layout .auth-panel{padding:26px 26px 26px 0}
.auth-admin-layout .admin-login-card{padding:32px 36px 25px;box-shadow:0 12px 36px #32473608}
.auth-admin-layout .admin-login-card>.button{margin-top:24px}
.auth-admin-layout .admin-login-card .admin-login-note{margin:22px 0 0;padding-top:17px;font-size:11px;text-align:center;color:#9aa6a1;border-top:1px solid #edf0ed}
.auth-admin-layout .admin-login-note a{color:#c17f4d;margin-left:4px}
.auth-admin-page>footer{font-size:10px;color:#a3ada6;text-align:center;padding:15px 20px 25px;letter-spacing:1px;background:none}
.admin-frame .admin-sidebar .admin-brand{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0 12px 26px;padding:0;font-weight:400}
.admin-brand-image{display:block;width:166px;max-width:100%;height:auto;object-fit:contain}
.admin-brand-caption{display:block;font-size:10px;color:#96a29c;letter-spacing:1.7px;padding-left:2px}
@media(min-width:1500px){.auth-layout{max-width:1200px;min-height:638px;margin-top:44px}.auth-story{padding:50px 46px 34px}.auth-story-content h1,.auth-story-content h2{font-size:40px}.auth-panel{padding:30px 30px 30px 0}.auth-layout .auth-card{padding:36px 40px 31px}.auth-admin-layout{max-width:1160px;margin-top:28px;min-height:606px}.auth-admin-page>.auth-admin-header{height:104px}}
@media(max-width:1000px) and (min-width:761px){.auth-layout{grid-template-columns:.85fr 1fr;min-height:580px}.auth-story{padding:35px 26px 26px}.auth-story-content h1,.auth-story-content h2,.auth-admin-layout .auth-story-content h2{font-size:29px}.auth-story-content>p{font-size:12px}.auth-layout .auth-card{padding:27px 25px}.auth-panel,.auth-admin-layout .auth-panel{padding:22px 22px 22px 0}.auth-card-brand>span{display:none}.auth-admin-layout .auth-story{padding:38px 28px 26px}}
@media(max-width:760px){
 .login-wrap.auth-layout,.auth-admin-layout{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;margin:18px auto 12px;padding:0;border-radius:14px;background-position:27% center;box-shadow:0 8px 30px #354b3d06}
 .auth-layout .auth-story,.auth-admin-layout .auth-story{display:flex;padding:22px 23px 21px;min-height:177px;background:linear-gradient(90deg,#f7f1e9e6 8%,#f7f1e9a6 52%,#f7f1e900 100%)}
 .auth-story:before{display:none}.auth-story-content>.eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:9px;gap:7px}
 .auth-story-content>.eyebrow:before{width:14px}.auth-story-content h1,.auth-story-content h2,.auth-admin-layout .auth-story-content h2{font-size:25px;line-height:1.5;letter-spacing:0}
 .auth-story-content>p{font-size:10px;line-height:1.8;margin-top:8px;max-width:240px}.auth-story-note{display:none}
 .auth-layout .auth-panel,.auth-admin-layout .auth-panel{display:block;padding:0 10px 10px}
 .auth-layout .auth-card,.auth-admin-layout .admin-login-card{padding:25px 22px 23px;border-radius:10px}
 .auth-card-brand{font-size:10px;margin-bottom:15px}.auth-card-brand>span{font-size:7px}.auth-layout .auth-card h1,.auth-layout .auth-card h2{font-size:23px}.auth-layout .auth-card>.muted{font-size:11px;margin-bottom:22px}
 .auth-layout .auth-card label{font-size:11px;margin:16px 0}.auth-layout .auth-card .login-captcha-row{grid-template-columns:minmax(0,1fr) 112px;gap:8px}.auth-layout .auth-card .login-captcha-refresh{width:112px!important}
 .auth-layout .auth-card .code-input{gap:8px}.auth-layout .auth-card .code-input>button{padding:0 11px;font-size:11px}
 .auth-layout .login-consent label{font-size:10px;margin:0}.auth-layout .login-consent button{font-size:10px}
 .auth-admin-page>.auth-admin-header{width:calc(100% - 36px);height:78px}.auth-brand{gap:12px}.auth-brand>img{width:154px}.auth-brand>span{font-size:10px;letter-spacing:.5px;padding-left:12px}.auth-admin-page>.auth-admin-header>.auth-return{font-size:11px;gap:5px}
 .auth-admin-page>.auth-admin-main{padding:0 14px}.auth-admin-layout{margin-top:4px}.auth-admin-layout .auth-story{min-height:148px;padding:20px 25px 18px}.auth-admin-layout .auth-story-content>p{font-size:10px;margin-top:7px}.auth-admin-layout .auth-story-content>p br{display:none}
 .auth-admin-page>footer{padding:14px 20px 23px;font-size:9px}.auth-admin-layout .admin-login-card .admin-login-note{font-size:10px}
 .auth-reset .auth-story-content h1{font-size:23px}
}
@media(max-width:360px){.auth-layout .auth-card,.auth-admin-layout .admin-login-card{padding:23px 17px}.auth-layout .auth-card .login-captcha-row{grid-template-columns:minmax(0,1fr) 100px}.auth-layout .auth-card .login-captcha-refresh{width:100px!important}.auth-card-brand>span,.auth-brand>span{display:none}.auth-layout .auth-card input:not([type=checkbox]){font-size:12px}.auth-story-content h1,.auth-story-content h2{font-size:23px}.auth-admin-page>.auth-admin-header{height:74px}}
@media(prefers-reduced-motion:reduce){.auth-layout .auth-card>.button{transition:none}}

/* On mobile, keep sign-in help in the story area and away from form controls. */
@media(max-width:760px){body:has(.auth-student)>.support-floating,body:has(.auth-reset)>.support-floating{position:absolute;top:184px;right:26px;bottom:auto;z-index:10}body:has(.auth-student)>.support-floating .support-contact,body:has(.auth-reset)>.support-floating .support-contact{flex-direction:row;gap:5px;padding:6px 9px;background:#fffdf3df;color:#6a8279;border:1px solid #fff9ea;border-radius:5px;font-size:10px;box-shadow:none}body:has(.auth-student)>.support-floating svg,body:has(.auth-reset)>.support-floating svg{width:14px;height:14px}}
