/* BrochureForge Auth Studio V1 – scoped visual presentation, does not override server auth */
:root { --bfa-navy:#0c203b; --bfa-ink:#132744; --bfa-muted:#66758a; --bfa-cyan:#07a7d8; --bfa-edge:#dae6f2; }
body.auth-body{min-height:100vh;background:#eef5fb !important;color:var(--bfa-ink);overflow-x:hidden;}
body.auth-body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 10% 18%,#d0effb 0,transparent 36%),radial-gradient(circle at 95% 85%,#c8d7fa 0,transparent 35%),linear-gradient(155deg,#f6fbff,#e7eff9);z-index:0}
body.auth-body .auth-shell{position:relative;z-index:1;max-width:none!important;width:100%!important;min-height:100vh;margin:0!important;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box}
body.auth-body .auth-header{width:min(1140px,calc(100% - 36px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;min-height:90px;box-sizing:border-box;padding:18px 4px!important;background:transparent!important;box-shadow:none!important}
body.auth-body .auth-logo{font-size:23px!important;font-weight:850;letter-spacing:-1px;color:var(--bfa-navy)!important;text-decoration:none;display:inline-flex;align-items:center;gap:11px}
body.auth-body .auth-logo:before{content:"";display:inline-block;width:25px;height:25px;border-radius:6px;background:linear-gradient(145deg,#04b8ed 0 48%,#057cbd 49%);box-shadow:inset -8px -5px 0 #0b87b9,0 5px 14px #0179a72a;transform:skewY(-7deg)}
body.auth-body .auth-main{width:min(1140px,calc(100% - 36px));max-width:none!important;min-height:570px;margin:auto!important;display:grid!important;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);align-items:stretch;padding:0!important;border:1px solid #d7e5f1;border-radius:28px;background:#fff;box-shadow:0 36px 110px #183a651f,0 8px 24px #1737590c;overflow:hidden}
body.auth-body .auth-box{margin:0!important;width:100%!important;max-width:none!important;min-width:0;box-shadow:none!important;border:0!important;border-radius:0!important;background:#fff!important;padding:clamp(24px,4.3vw,58px) clamp(25px,4.6vw,64px)!important;box-sizing:border-box}
body.auth-body .auth-kicker{font-size:11px;letter-spacing:.2em;font-weight:800;color:#078db4;margin-bottom:11px}
body.auth-body .auth-box h1{font-size:clamp(27px,3vw,37px)!important;line-height:1.13;letter-spacing:-.045em;color:#112441;margin:0 0 13px}
body.auth-body .auth-intro{font-size:14px!important;line-height:1.65;color:#617188;max-width:390px;margin:0 0 23px}
body.auth-body .auth-form{display:flex;flex-direction:column;gap:5px}
body.auth-body .auth-form>label{color:#253953;font-size:12px;font-weight:750;margin-top:8px}
body.auth-body .auth-form>input,body.auth-body .bf-login-password-wrap input{width:100%;max-width:100%;height:44px;box-sizing:border-box;border:1px solid #dbe5f0!important;background:#f9fbff!important;border-radius:12px!important;padding:9px 14px!important;outline:none;box-shadow:none!important;font-size:14px;color:#112441;transition:border-color .15s,box-shadow .15s}
body.auth-body .auth-form>input:focus,body.auth-body .bf-login-password-wrap input:focus{border-color:#00a6db!important;box-shadow:0 0 0 3px #00a6db1c!important}
body.auth-body .auth-form .bf-register-consents-v1{margin:11px 0!important;gap:9px!important}
body.auth-body .auth-form .bf-register-consent-row{font-size:12px!important;line-height:1.45!important}
body.auth-body .auth-submit{border:0!important;min-height:46px;border-radius:12px!important;background:linear-gradient(102deg,#047db9,#04b9de)!important;box-shadow:0 10px 22px #039bca29!important;color:#fff!important;font-size:14px!important;font-weight:800!important;letter-spacing:.01em;cursor:pointer;transition:transform .2s,filter .2s}
body.auth-body .auth-submit:hover{filter:brightness(1.04);transform:translateY(-1px)}
body.auth-body .auth-switch{font-size:12px;color:#66758a;text-align:center;margin-top:18px}
body.auth-body .auth-switch a,body.auth-body .auth-footer a{color:#007da9!important;text-decoration:none;font-weight:750}
body.auth-body .auth-error{padding:12px 14px;background:#fff0ef;border:1px solid #ffcfcc;border-radius:12px;font-size:13px;color:#b03936;margin-bottom:14px}
body.auth-body .auth-footer{padding:20px;text-align:center;color:#748298;font-size:12px}
.bfa-social-links{display:grid;gap:8px;margin:8px 0 18px}
.bfa-social-links a{display:flex;align-items:center;justify-content:center;gap:11px;min-height:42px;box-sizing:border-box;border-radius:11px;border:1px solid #dce6f0;color:#18314b!important;background:#fff;text-decoration:none!important;font-weight:750;font-size:13px;transition:box-shadow .15s,border-color .15s}
.bfa-social-links a:hover{border-color:#84cce3;box-shadow:0 5px 18px #136e9e12}
.bfa-social-icon{font-size:18px;font-weight:850;width:22px;text-align:center}
.bfa-provider-google{color:#4285f4}.bfa-provider-facebook{color:#0866ff}.bfa-provider-apple{color:#101b2d}
.bfa-divider{display:flex;align-items:center;gap:12px;margin:17px 0 9px;color:#93a0af;font-size:11px;font-weight:650}
.bfa-divider:before,.bfa-divider:after{content:"";height:1px;background:#e3eaf2;flex:1}
.bfa-story{min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden;color:#fff;background:linear-gradient(155deg,#091e3b 3%,#123b69 48%,#07567b 100%);padding:clamp(25px,4vw,54px);box-sizing:border-box}
.bfa-story:before{content:"";pointer-events:none;position:absolute;width:460px;height:460px;border-radius:50%;right:-240px;top:-180px;background:radial-gradient(circle,#1bbbe783,transparent 66%)}
.bfa-story:after{content:"";pointer-events:none;position:absolute;width:440px;height:440px;border-radius:50%;left:-250px;bottom:-290px;background:radial-gradient(circle,#3475ed62,transparent 68%)}
.bfa-story>*{position:relative;z-index:1}
.bfa-story .bfa-kicker{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;padding:9px 12px;border:1px solid #a7ebff4a;border-radius:40px;background:#ffffff12;color:#bbf3ff;font-size:11px;letter-spacing:.12em;font-weight:800;text-transform:uppercase}
.bfa-story h2{font-size:clamp(28px,3.3vw,42px);line-height:1.12;letter-spacing:-.048em;margin:24px 0 11px;font-weight:820;color:#fff}
.bfa-story h2 span{color:#74ddf5}
.bfa-story .bfa-lead{font-size:14px;line-height:1.65;color:#d2e5f4;max-width:375px;margin:0 0 27px}
.bfa-document-stack{position:relative;max-width:390px;width:100%;height:188px;margin:0 auto 22px}
.bfa-paper{position:absolute;width:55%;height:158px;border:1px solid #ffffff30;border-radius:13px;background:#f6fbff;color:#163354;box-shadow:0 13px 30px #07162e45;padding:15px;box-sizing:border-box;transform-origin:50% 100%}
.bfa-paper:nth-child(1){left:5%;top:18px;transform:rotate(-13deg);opacity:.80}
.bfa-paper:nth-child(2){left:23%;top:7px;transform:rotate(4deg);background:#e9f8fd}
.bfa-paper:nth-child(3){left:44%;top:18px;transform:rotate(14deg);background:#fff}
.bfa-paper .bfa-line{height:6px;border-radius:3px;background:#dce7f2;margin-bottom:9px}
.bfa-paper .bfa-line:nth-child(2){width:62%}
.bfa-paper .bfa-tile{height:63px;border-radius:6px;background:linear-gradient(125deg,#d6effa,#0c8ebc);margin:0 0 11px}
.bfa-paper .bfa-figure{margin-bottom:9px;font-size:10px;font-weight:850;letter-spacing:.08em}
.bfa-progress{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:auto;padding-top:12px}
.bfa-progress span{display:inline-flex;align-items:center;gap:7px;padding:8px 9px;border-radius:9px;background:#ffffff12;border:1px solid #ffffff14;color:#e5f7ff;font-size:11px;font-weight:700}
.bfa-progress span:not(:last-child):after{content:"→";opacity:.7;margin-left:6px}
.bfa-story .bfa-footnote{margin:17px 0 0;color:#adcde2;font-size:11px;line-height:1.5}
@media (max-width:820px){body.auth-body .auth-header{min-height:64px}body.auth-body .auth-main{grid-template-columns:1fr;max-width:570px;min-height:0;margin:24px auto!important}body.auth-body .auth-box{padding:27px 25px!important}.bfa-story{padding:25px}.bfa-story h2{font-size:26px;margin:13px 0 9px}.bfa-story .bfa-lead{margin-bottom:5px}.bfa-document-stack{display:none}.bfa-progress{margin-top:12px;gap:6px}.bfa-story .bfa-footnote{margin-top:12px}}
@media (max-width:430px){body.auth-body .auth-main{width:calc(100% - 20px);border-radius:18px;margin:10px auto!important}body.auth-body .auth-header{width:calc(100% - 24px);padding-top:7px!important}body.auth-body .auth-box{padding:26px 19px!important}.bfa-story{padding:20px}.bfa-story .bfa-progress span{font-size:10px}}
/* Page navigation between real signup and sign in endpoints */
.bfa-tabs{display:inline-flex;gap:3px;padding:4px;border-radius:12px;background:#f0f5fb;margin:0 0 19px}
.bfa-tabs a{display:inline-flex;align-items:center;justify-content:center;padding:8px 15px;border-radius:9px;color:#66758a;text-decoration:none!important;font-size:12px;font-weight:800;white-space:nowrap}
.bfa-tabs a[aria-current="page"]{background:#fff;color:#007da9;box-shadow:0 2px 8px #15385717}
body.auth-body .bfa-close{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#e0eaf4;color:#244767!important;text-decoration:none;font-size:23px;font-weight:400;line-height:1;transition:background .15s}
body.auth-body .bfa-close:hover{background:#cbddec}
