:root{--turq:#10AAA5;--gran:#822274;--fram:#BE1B4D;--ink:#2A2238;--soft:#5F5670;--cream:#FFF8EE;--line:#EDE4EE}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Poppins,system-ui,sans-serif;color:var(--ink);background:#FBF8F4;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:"League Spartan",Poppins,sans-serif;font-weight:700;margin:0;line-height:1.1}
a{color:var(--fram)}
img{max-width:100%;display:block}

/* login */
.hb-login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}
.hb-login-art{position:relative;background:linear-gradient(160deg,#FFF8EE 0%,#F7EAF2 55%,#EAF6F5 100%);padding:64px 7vw 40px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.hb-stripe{display:flex;gap:6px;margin-bottom:26px}.hb-stripe i{width:38px;height:6px;border-radius:4px;background:var(--turq)}.hb-stripe i:nth-child(2){background:#605DDE}.hb-stripe i:nth-child(3){background:var(--fram)}.hb-stripe i:nth-child(4){background:var(--gran)}
.hb-login-art h1{font-size:clamp(34px,4.2vw,58px);color:var(--gran);max-width:12ch}
.hb-login-art h1 span{color:var(--fram)}
.hb-login-art p{font-size:17px;color:var(--soft);max-width:34ch;margin:18px 0 0}
.hb-fan{position:relative;height:300px;margin-top:40px}
.hb-fan img{position:absolute;width:170px;border-radius:12px;box-shadow:0 18px 40px -16px rgba(60,20,80,.45);border:5px solid #fff}
.hb-fan .c0{left:0;top:40px;transform:rotate(-8deg)}
.hb-fan .c1{left:130px;top:0;z-index:2}
.hb-fan .c2{left:260px;top:40px;transform:rotate(8deg)}
.hb-login-box{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:#fff}
.hb-card{width:100%;max-width:400px}
.hb-logo{width:120px;margin-bottom:26px}
.hb-card h2{font-size:30px;color:var(--gran)}
.hb-sub{color:var(--soft);margin:6px 0 24px}
.hb-card label{display:block;font-weight:500;font-size:14px;margin-bottom:16px;color:var(--ink)}
.hb-card input{display:block;width:100%;margin-top:6px;font:16px Poppins,sans-serif;padding:13px 15px;border:1.5px solid #E2D8E7;border-radius:12px;background:#FDFBFE;outline:none;transition:border-color .2s}
.hb-card input:focus{border-color:var(--turq);background:#fff}
.hb-card button{width:100%;margin-top:6px;font:600 16px Poppins,sans-serif;color:#fff;background:var(--fram);border:0;border-radius:30px;padding:14px;cursor:pointer;box-shadow:0 10px 22px -12px rgba(190,27,77,.8)}
.hb-card button:hover{background:#a3163f}
.hb-err{background:#FBEFF1;color:#9b1440;border-radius:10px;padding:10px 14px;font-size:14px;margin:0 0 16px}
.hb-help{font-size:14px;color:var(--soft);margin-top:22px}

/* top bar */
.hb-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 5vw;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.hb-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--gran)}
.hb-brand img{width:56px}
.hb-brand span{font:700 22px "League Spartan",sans-serif;line-height:1}
.hb-brand small{display:block;font:500 12px Poppins,sans-serif;color:var(--soft);margin-top:3px}
.hb-top nav{display:flex;align-items:center;gap:18px;font-size:14px}
.hb-top nav a{color:var(--ink);text-decoration:none;font-weight:500}
.hb-who{color:var(--soft)}
.hb-out{background:#F5E9F2;color:var(--gran)!important;padding:7px 16px;border-radius:20px}

/* library */
.hb-wrap{max-width:1120px;margin:0 auto;padding:40px 5vw 70px}
.hb-hello h1{font-size:clamp(30px,4vw,44px);color:var(--gran)}
.hb-hello h1 span{color:var(--fram)}
.hb-status{margin:14px 0 0;font-size:15px;color:var(--soft)}
.hb-status.ok{display:inline-block;background:#E8F4F3;color:#0b6f6b;padding:8px 16px;border-radius:20px}
.hb-status.off{background:#FBEFF1;border-radius:16px;padding:18px 20px;color:#7a1033;display:flex;flex-wrap:wrap;align-items:center;gap:14px;justify-content:space-between;max-width:760px}
.hb-status.off p{margin:0}
.hb-btn{display:inline-block;background:var(--fram);color:#fff!important;text-decoration:none;font-weight:600;padding:11px 22px;border-radius:30px}
.hb-col{font-size:22px;color:var(--ink);margin:44px 0 18px;padding-bottom:10px;border-bottom:2px solid var(--line)}
.hb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:26px}
.hb-book{text-decoration:none;color:var(--ink);background:#fff;border-radius:18px;padding:14px 14px 18px;box-shadow:0 10px 28px -18px rgba(60,20,80,.4);transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.hb-book:hover{transform:translateY(-4px);box-shadow:0 18px 36px -18px rgba(60,20,80,.5)}
.hb-cov{position:relative}.hb-cov img{border-radius:10px;width:100%}
.hb-lv{display:none;position:absolute;top:10px;left:10px;background:var(--c);color:#fff;font:700 14px "League Spartan",sans-serif;padding:5px 10px 3px;border-radius:10px}
.hb-book small{color:var(--soft);font-size:12px;margin-top:12px}
.hb-book h3{font-size:19px;color:var(--c);margin-top:3px}
.hb-meta{font-size:13px;color:var(--soft);margin-top:4px}
.hb-go{margin-top:auto;padding-top:10px;font-weight:600;color:var(--fram);font-size:14px}
.hb-empty{color:var(--soft);margin-top:30px}

/* book page */
.hb-back{display:inline-block;color:var(--soft);text-decoration:none;font-size:14px;margin-bottom:20px}
.hb-bookhead{display:flex;gap:30px;align-items:center;background:#fff;border-radius:22px;padding:24px;box-shadow:0 10px 30px -20px rgba(60,20,80,.4)}
.hb-bookhead img{width:190px;border-radius:12px;flex:0 0 auto}
.hb-bookhead small{color:var(--soft);font-weight:500}
.hb-bookhead h1{font-size:clamp(30px,4vw,44px);color:var(--c);margin:6px 0 10px}
.hb-bookhead p{color:var(--soft);margin:0 0 18px;max-width:50ch}
.hb-chaps{list-style:none;padding:0;margin:30px 0 0;display:grid;gap:10px}
.hb-chaps a{display:flex;align-items:center;gap:16px;background:#fff;border-radius:14px;padding:14px 18px;text-decoration:none;color:var(--ink);border:1px solid var(--line);transition:border-color .2s}
.hb-chaps a:hover{border-color:var(--c)}
.hb-chaps .n{flex:0 0 40px;height:40px;border-radius:50%;background:var(--c);color:#fff;font:700 18px "League Spartan",sans-serif;display:flex;align-items:center;justify-content:center;padding-top:3px}
.hb-chaps .t{flex:1;font:700 18px "League Spartan",sans-serif}
.hb-chaps .t small{display:block;font:400 12px Poppins,sans-serif;color:var(--soft);margin-bottom:2px}
.hb-chaps .g{color:var(--fram);font-weight:600;font-size:14px}

.hb-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 5vw;background:var(--gran);color:#fff;font-size:13px;flex-wrap:wrap}
.hb-foot b{font:700 15px "League Spartan",sans-serif;letter-spacing:.06em}
.hb-login + .hb-foot{display:none}

@media (max-width:820px){
 .hb-login{grid-template-columns:1fr}
 .hb-login-art{padding:40px 24px 10px}
 .hb-fan{height:200px;margin-top:24px}.hb-fan img{width:120px}.hb-fan .c1{left:90px}.hb-fan .c2{left:180px}
 .hb-bookhead{flex-direction:column;text-align:center}.hb-bookhead p{margin-left:auto;margin-right:auto}
 .hb-top nav .hb-who{display:none}
 .hb-grid{grid-template-columns:repeat(2,1fr);gap:14px}
}
