/* The library entrance uses the existing authentication forms and handlers. */
.auth-shell.auth-entry{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,560px) minmax(360px,470px);justify-content:center;align-items:center;gap:clamp(40px,7vw,110px);min-height:100vh;min-height:100svh;padding:40px clamp(24px,5vw,90px);background-color:#192516;background-image:linear-gradient(90deg,#061009b0 0%,#09140b78 42%,#09140b2b 72%,#06100952),url('/images/vintage-library-login-v276.webp');background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed}
.auth-library-welcome{width:100%;max-width:560px;justify-self:start;color:#fff4d8;padding:35px 0;text-shadow:0 2px 15px #0008;align-self:center}
.auth-library-kicker{font:500 11px/1.5 var(--font-ui,Manrope,sans-serif);letter-spacing:.2em;color:#e8d4a5}
.auth-library-welcome h2{font:500 clamp(43px,4.6vw,68px)/1.08 var(--font-academic,Georgia,serif);letter-spacing:-.035em;margin:22px 0;color:#fff4d8;text-wrap:balance}
.auth-library-welcome>p{font:400 17px/1.7 var(--font-ui,Manrope,sans-serif);max-width:395px;margin:0;color:#eee3cc}
.auth-library-rule{display:flex;align-items:center;gap:12px;max-width:290px;margin:31px 0 24px;color:#dbc186;text-shadow:none}
.auth-library-rule::before,.auth-library-rule::after{content:'';height:1px;background:linear-gradient(90deg,#dbc18690,transparent);flex:1}.auth-library-rule::before{background:linear-gradient(90deg,transparent,#dbc18690)}
.auth-library-rule>span{font:20px/1 var(--font-academic,Georgia,serif)}
.auth-library-welcome>.auth-library-motto{font:italic 20px/1.5 var(--font-academic,Georgia,serif);color:#efddb0}
.auth-shell.auth-entry>.nexo-auth-card{position:relative;isolation:isolate;width:100%;max-width:470px;min-width:0;justify-self:center;padding:30px 37px 24px;border:1px solid #ac8b48;border-radius:7px;background-color:var(--panel,#fbf5e7);background-image:var(--paper-grain);box-shadow:0 18px 65px #0007,inset 0 0 0 5px var(--panel),inset 0 0 0 6px color-mix(in srgb,var(--heritage-gold) 42%,transparent);color:var(--text)}
.auth-entry>.nexo-auth-card::before{content:'';position:absolute;inset:10px;border:1px solid color-mix(in srgb,var(--heritage-gold) 35%,transparent);border-radius:2px;pointer-events:none;z-index:-1}
.auth-entry .nexo-auth-brand{gap:5px!important;margin:0 0 20px!important;min-width:0;line-height:1.1}
.auth-entry .nexo-auth-brand .brand-mark.brand-crest{width:104px;height:94px;flex-basis:94px}
.auth-entry .nexo-auth-brand .brand-wordmark{font-size:29px}
.auth-entry .nexo-auth-brand .brand-wordmark>span{font-family:var(--font-academic,Georgia,serif);font-size:inherit;font-weight:600;line-height:1.1;letter-spacing:-.04em;color:var(--text);-webkit-text-stroke:0;text-shadow:none}
.auth-entry .nexo-auth-brand .brand-wordmark>span::before{display:none}
.auth-entry .nexo-auth-card>h1{font:600 29px/1.2 var(--font-academic,Georgia,serif)!important;letter-spacing:-.025em;text-align:center;margin:0 0 10px;color:var(--text);text-wrap:balance}
.auth-entry .nexo-auth-card>h1+p{font:400 13px/1.65 var(--font-ui,Manrope,sans-serif);text-align:center;max-width:335px;margin:0 auto 18px;color:var(--quiet)}
.auth-entry .nexo-auth-tabs{gap:4px;margin:20px 0;padding:4px;border:1px solid var(--edge);border-radius:5px;background:var(--subtle)}
.auth-entry .nexo-auth-tabs button{border-radius:3px;min-height:42px;font:600 15px/1.3 var(--font-academic,Georgia,serif);color:var(--quiet)}
.auth-entry .nexo-auth-tabs button[aria-pressed=true]{background:var(--panel);color:var(--text);box-shadow:0 1px 4px var(--heritage-shadow),inset 0 0 0 1px color-mix(in srgb,var(--heritage-gold) 45%,transparent)}
.auth-entry .nexo-auth-card .form{gap:14px;min-width:0}
.auth-entry .nexo-auth-card .form>label{font-size:13px;font-weight:500;color:var(--text);min-width:0}
.auth-entry .nexo-auth-card .form input{min-height:48px;padding:11px 13px;margin-top:6px;font-size:16px;background:var(--field);border:1px solid var(--edge);border-radius:4px;color:var(--text);scroll-margin-block:25px}
.auth-entry .nexo-auth-card .form input:focus{border-color:var(--heritage-gold);outline-color:var(--heritage-gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--heritage-gold) 15%,transparent)}
.auth-entry .nexo-auth-card .form>.btn{min-height:50px;margin-top:3px;font:600 18px/1.3 var(--font-academic,Georgia,serif);padding:12px 16px}
.auth-entry .nexo-auth-card .form>small{font-size:11px;line-height:1.6;color:var(--quiet)}
.auth-entry .nexo-auth-text-button{font-size:12px;min-height:38px;margin:10px auto 5px;color:var(--accent-ink)}
.auth-entry .nexo-auth-migration{margin-top:15px;padding-top:11px;border-top:1px solid var(--edge);font-size:12px;color:var(--quiet)}
.auth-entry .nexo-auth-migration>summary{display:list-item;min-height:34px;cursor:pointer;font-size:12px;color:var(--quiet);line-height:1.5;padding:7px 0}
.auth-entry .nexo-auth-migration p{font-size:12px;line-height:1.65}
.auth-entry .nexo-google-button{font-size:14px;min-height:47px;border-color:var(--heritage-gold-soft);margin-bottom:17px}
.auth-entry .nexo-auth-card #auth-status{font-size:13px;line-height:1.6;text-align:left;border:1px solid var(--edge);border-radius:4px}
:root[data-theme=dark] .auth-shell.auth-entry{background-image:linear-gradient(90deg,#030b06bf,#030b0680 45%,#030b064d),url('/images/vintage-library-login-v276.webp')}
:root[data-theme=dark] .auth-entry>.nexo-auth-card{background:var(--panel);border-color:var(--heritage-gold-soft)}
@media(max-width:980px){.auth-shell.auth-entry{grid-template-columns:minmax(0,470px);padding:32px 22px;background-position:46% center;gap:0}.auth-library-welcome{display:none}}
@media(max-width:600px){.auth-shell.auth-entry{min-height:100svh;padding:24px 16px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom));background-position:48% center;background-attachment:scroll;align-content:center}.auth-shell.auth-entry>.nexo-auth-card{width:min(440px,100%);padding:24px 25px 18px;border-radius:6px}.auth-entry .nexo-auth-brand{margin-bottom:16px!important}.auth-entry .nexo-auth-brand .brand-mark.brand-crest{width:94px;height:84px;flex-basis:84px}.auth-entry .nexo-auth-brand .brand-wordmark{font-size:26px}.auth-entry .nexo-auth-card>h1{font-size:27px!important}.auth-entry .nexo-auth-card>h1+p{font-size:12px;margin-bottom:15px}.auth-entry .nexo-auth-tabs{margin:17px 0}.auth-entry .nexo-auth-card .form input{min-height:49px}.auth-entry .nexo-auth-card .form>.btn{min-height:50px}.auth-entry .nexo-auth-card .form{gap:13px}}
@media(max-width:359px){.auth-shell.auth-entry{padding-inline:12px}.auth-shell.auth-entry>.nexo-auth-card{padding:22px 21px 17px}.auth-entry .nexo-auth-card>h1{font-size:25px!important}.auth-entry .nexo-auth-brand .brand-mark.brand-crest{width:86px;height:78px;flex-basis:78px}}
@media(max-height:760px){.auth-shell.auth-entry{align-items:start;align-content:start}.auth-library-welcome{align-self:center}}
