/* bfpdf sign-in page. Apple-style: calm, spacious, one clear action per screen.
   Uses the site's own font tokens (--font / --display from site.css). */
.auth-page{background:var(--bg,#f5f5f7)}
.auth-shell{min-height:calc(100vh - 72px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 16px 28px;font-family:var(--font)}
.auth-card{width:min(440px,100%);background:#fff;border-radius:28px;padding:40px 36px 32px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 24px 70px rgba(0,0,0,.09);animation:authIn .5s var(--ease,cubic-bezier(.22,.61,.36,1)) both}
@keyframes authIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.auth-card h1{font-family:var(--display);font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-.025em;margin:0 0 8px;color:var(--ink,#1d1d1f);text-align:center}
.auth-card .auth-sub{margin:0 0 26px;text-align:center;color:var(--muted,#6e6e73);font-size:16px;line-height:1.45}
.auth-card .cfgwarn{background:#fff6e0;color:#8a5300;border-radius:14px;padding:12px 14px;font-size:14px;margin-bottom:16px}

/* segmented control */
.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f0f0f3;border-radius:14px;padding:4px;margin:0 0 22px}
.seg button{appearance:none;border:0;background:transparent;font:inherit;font-size:15px;font-weight:600;color:var(--muted,#6e6e73);height:38px;border-radius:11px;cursor:pointer;transition:background .25s,color .25s,box-shadow .25s}
.seg button[aria-selected="true"]{background:#fff;color:var(--ink,#1d1d1f);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.seg button:focus-visible{outline:3px solid rgba(227,0,0,.35);outline-offset:1px}

/* fields */
.fld{margin:0 0 14px}
.fld label{display:block;font-size:13px;font-weight:600;color:var(--ink-2,#424245);margin:0 0 6px 2px}
.fld input{width:100%;height:52px;border:1px solid #d2d2d7;border-radius:14px;background:#fff;padding:0 16px;font:inherit;font-size:17px;color:var(--ink,#1d1d1f);transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none}
.fld input::placeholder{color:#a1a1a6}
.fld input:hover{border-color:#a1a1a6}
.fld input:focus{outline:0;border-color:var(--red,#E30000);box-shadow:0 0 0 4px rgba(227,0,0,.14)}
.pw{position:relative}
.pw input{padding-right:70px}
.pw button{position:absolute;right:6px;top:6px;height:40px;padding:0 12px;border:0;background:transparent;font:inherit;font-size:14px;font-weight:600;color:var(--muted,#6e6e73);border-radius:10px;cursor:pointer}
.pw button:hover{color:var(--ink,#1d1d1f);background:#f5f5f7}
.auth-card .chk{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;color:var(--ink-2,#424245);margin:4px 0 18px;cursor:pointer}
.auth-card .chk input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--red,#E30000)}
.auth-card .chk a{color:var(--red,#E30000);text-decoration:none}
.auth-card .chk a:hover{text-decoration:underline}

/* buttons */
.abtn{appearance:none;border:0;width:100%;height:52px;border-radius:999px;font:inherit;font-size:17px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;transition:transform .15s,background .2s,box-shadow .2s,opacity .2s}
.abtn.primary{background:var(--red,#E30000);color:#fff;box-shadow:0 6px 18px rgba(227,0,0,.28)}
.abtn.primary:hover{background:var(--red-dark,#BF0000)}
.abtn.primary:active{transform:scale(.985)}
.abtn.primary:disabled{opacity:.6;cursor:default;box-shadow:none}
.abtn.ghost{background:#f5f5f7;color:var(--ink,#1d1d1f)}
.abtn.ghost:hover{background:#ebebef}
.abtn.ghost:disabled{color:#a1a1a6;cursor:default}
.abtn:focus-visible{outline:3px solid rgba(227,0,0,.4);outline-offset:2px}
.alink{appearance:none;border:0;background:none;font:inherit;font-size:15px;color:var(--red,#E30000);cursor:pointer;padding:6px 4px}
.alink:hover{text-decoration:underline}
.auth-forgot{text-align:center;margin:14px 0 0}
.auth-or{display:flex;align-items:center;gap:12px;color:#a1a1a6;font-size:13px;margin:18px 0}
.auth-or::before,.auth-or::after{content:"";height:1px;background:#e5e5ea;flex:1}
.gbtn{width:100%;height:52px;border-radius:999px;border:1px solid #d2d2d7;background:#fff;font:inherit;font-size:16px;font-weight:600;color:var(--ink,#1d1d1f);display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.gbtn:hover{background:#f5f5f7}

/* messages */
#lgMsg{margin-top:14px}
#lgMsg .msg{border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.45}
#lgMsg .msg.err{background:#fff1f0;color:#b00020}
#lgMsg .msg.ok{background:#eaf7ef;color:#0b7a3e}
#lgMsg .linkbtn{appearance:none;border:0;background:none;font:inherit;color:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}
#lgSigned{text-align:center;color:var(--ink-2,#424245)}
#lgSigned .abtn{margin-top:10px}

/* "check your email" sheet */
.sheet{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(29,29,31,.42);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);animation:sheetBg .3s ease both}
.sheet[hidden]{display:none}
@keyframes sheetBg{from{opacity:0}to{opacity:1}}
.sheet-box{width:min(440px,100%);background:#fff;border-radius:30px;padding:40px 34px 28px;text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.28);animation:sheetIn .45s cubic-bezier(.2,.9,.25,1.1) both}
@keyframes sheetIn{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
.sheet-ico{width:84px;height:84px;border-radius:26px;margin:0 auto 22px;background:linear-gradient(145deg,#ff4d4d,#E30000);display:grid;place-items:center;box-shadow:0 14px 30px rgba(227,0,0,.3)}
.sheet-box h2{font-family:var(--display);font-size:28px;line-height:1.12;letter-spacing:-.02em;margin:0 0 10px;color:var(--ink,#1d1d1f)}
.sheet-box p{margin:0 0 8px;color:var(--ink-2,#424245);font-size:16px;line-height:1.5}
.sheet-box p.small{font-size:13.5px;color:var(--muted,#6e6e73);margin-bottom:22px}
.sheet-box b{overflow-wrap:anywhere;word-break:normal;color:var(--ink,#1d1d1f);display:inline-block;max-width:100%;vertical-align:bottom}
.sheet-actions{display:grid;gap:10px}
.sheet-note{min-height:20px;font-size:13.5px;margin:10px 0 0;color:#0b7a3e}
.sheet-note.err{color:#b00020}

.auth-foot2{margin-top:26px;text-align:center;font-size:13px;color:var(--muted,#6e6e73);line-height:1.7}
.auth-foot2 strong{color:var(--ink-2,#424245);font-weight:600}
.auth-foot2 a{color:var(--muted,#6e6e73);text-decoration:none;margin:0 6px}
.auth-foot2 a:hover{color:var(--ink,#1d1d1f);text-decoration:underline}

@media (max-width:520px){
  .auth-shell{padding:24px 12px 20px;justify-content:flex-start}
  .auth-card{padding:30px 22px 26px;border-radius:24px}
  .auth-card h1{font-size:28px}
  .sheet-box{padding:32px 22px 22px}
}
@media (prefers-reduced-motion:reduce){.auth-card,.sheet,.sheet-box{animation:none}}

.sheet-code{display:grid;gap:10px;margin:0 0 14px}
.sheet-code input{width:100%;height:56px;border:1px solid #d2d2d7;border-radius:14px;text-align:center;font:inherit;font-size:24px;font-weight:600;letter-spacing:.32em;text-indent:.32em;color:var(--ink,#1d1d1f)}
.sheet-code input::placeholder{font-size:16px;font-weight:400;letter-spacing:0;text-indent:0;color:#a1a1a6}
.sheet-code input:focus{outline:0;border-color:var(--red,#E30000);box-shadow:0 0 0 4px rgba(227,0,0,.14)}


/* ---- compact sizes (smaller type, tighter controls) ---- */
.auth-page .auth-shell{padding:28px 16px 24px}
.auth-page .auth-card{width:min(400px,100%);padding:28px 28px 24px}
.auth-page .auth-card h1{font-size:24px;line-height:1.15;margin:0 0 6px}
.auth-page .auth-card .auth-sub{font-size:14px;margin:0 0 20px}
.auth-page .seg{margin:0 0 18px}
.auth-page .seg button{font-size:14px;height:34px}
.auth-page .fld{margin:0 0 12px}
.auth-page .fld label{font-size:12.5px;margin:0 0 5px 2px}
.auth-page .fld input{height:44px;font-size:15px;padding:0 14px;border-radius:12px}
.auth-page .pw input{padding-right:64px}
.auth-page .pw button{top:4px;height:36px;font-size:13px}
.auth-page .auth-card .chk{font-size:13px;margin:2px 0 14px}
.auth-page .abtn{height:44px;font-size:15px}
.auth-page .alink{font-size:13.5px}
.auth-page .auth-forgot{margin:10px 0 0}
.auth-page .auth-or{font-size:12px;margin:14px 0}
.auth-page .gbtn{height:44px;font-size:14.5px}
.auth-page #lgMsg .msg{font-size:13px;padding:10px 12px}
.auth-page .sheet-box{padding:30px 26px 22px;width:min(400px,100%)}
.auth-page .sheet-ico{width:64px;height:64px;border-radius:20px;margin-bottom:16px}
.auth-page .sheet-box h2{font-size:22px}
.auth-page .sheet-box p{font-size:14px}
.auth-page .sheet-box p.small{font-size:12.5px;margin-bottom:16px}
.auth-page .sheet-code input{height:48px;font-size:20px}
.auth-page .sheet-note{font-size:12.5px}
.auth-page .auth-foot2{font-size:12px;margin-top:20px}
.auth-page .fld input:-webkit-autofill,.auth-page .fld input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 40px #fff inset;-webkit-text-fill-color:#141414}
@media (max-width:520px){.auth-page .auth-card{padding:24px 18px 20px}.auth-page .auth-card h1{font-size:22px}}
