@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root { color-scheme: light; --ink: #222821; --muted: #73786f; --green: #345849; --paper: #f5f1e8; --line: #dedbd2; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
.login-page { display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(ellipse at 50% 0%, #e8eadf 0, var(--paper) 60%); }
.card { width: min(100%, 470px); padding: 54px 56px 42px; background: rgba(255,255,255,.78); border: 1px solid rgba(52,88,73,.12); border-radius: 5px; box-shadow: 0 24px 70px rgba(39,48,39,.08); }
.eyebrow { margin: 0 0 22px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .19em; }
h1 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(40px, 8vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
h1 em { color: var(--green); font-weight: 500; }
.intro { margin: 20px 0 30px; color: #626a62; font-size: 14px; line-height: 1.7; }
form { display: grid; gap: 10px; }
label { margin-top: 8px; color: #414941; font-size: 12px; font-weight: 600; }
input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px; outline: none; background: #fffefa; color: var(--ink); font: inherit; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(52,88,73,.1); }
button { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 15px 17px; border: 0; border-radius: 3px; background: var(--green); color: white; font: 600 14px 'DM Sans', sans-serif; cursor: pointer; }
button:hover { background: #294739; }
button:disabled { opacity: .7; cursor: wait; }
.fine-print { margin: 25px 0 0; color: #898d85; font-size: 11px; text-align: center; }
.error { margin: 4px 0 0; color: #9c382e; font-size: 13px; }
.reader-page { padding: 34px 20px 70px; }
.reader-wrap { width: min(100%, 820px); margin: 0 auto; }
.reader-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 30px; border-bottom: 1px solid var(--line); }
.brand { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.signout { padding: 9px 13px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 12px; }
.welcome { padding: 66px 0 40px; }
.welcome h1 { font-size: clamp(44px, 8vw, 68px); }
.welcome p { max-width: 490px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.book { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.65); }
.cover { display: grid; place-items: center; min-height: 230px; padding: 18px; color: #f5f1e8; text-align: center; background: linear-gradient(145deg, #547360, #223e32); box-shadow: 0 14px 28px #27302722; }
.cover small { display: block; font-size: 9px; letter-spacing: .19em; }
.cover strong { display: block; margin: 18px 0; font: 500 23px/1.1 'Playfair Display', Georgia, serif; }
.book-copy h2 { margin: 0 0 9px; font: 500 27px 'Playfair Display', Georgia, serif; }
.book-copy p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.download { display: inline-flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 3px; background: var(--green); color: white; font-size: 13px; font-weight: 600; text-decoration: none; }
.download:hover { background: #294739; }
.reader-note { margin-top: 20px; color: #898d85; font-size: 11px; line-height: 1.6; }
@media (max-width: 580px) { .card { padding: 40px 27px 32px; } .book { grid-template-columns: 1fr; padding: 20px; } .cover { min-height: 190px; } .welcome { padding-top: 48px; } }
