@import url('terms-agreement.css');
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:"Inter",Arial,sans-serif;color:#092c68}
body{background:#fff}
.auth-page{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:1fr 1fr}
.auth-visual{position:relative;min-width:0;padding:clamp(24px,4svh,48px) 11%;display:flex;flex-direction:column;justify-content:center;overflow:hidden;background:linear-gradient(135deg,rgba(237,246,252,.93),rgba(255,248,229,.42)),url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?auto=format&fit=crop&w=1200&q=85') center/cover}
.auth-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(6,45,91,.14));pointer-events:none}
.auth-brand,.auth-message,.auth-caption{position:relative;z-index:1}
.auth-brand{display:flex;align-items:center;gap:14px;margin-bottom:clamp(18px,4svh,36px)}
.auth-brand img{display:block;width:clamp(120px,20svh,170px);max-width:100%;height:auto}
.auth-brand svg{width:58px;height:58px}
.auth-brand strong{display:block;font-family:Georgia,serif;font-size:1.8rem;letter-spacing:.08em}
.auth-brand small{display:block;color:#609b42;letter-spacing:.27em;font-weight:700;font-size:.65rem;margin-top:4px}
.auth-message{max-width:540px}
.auth-message h1{font-size:clamp(2rem,min(4.2vw,7.5svh),4.5rem);line-height:1;letter-spacing:-.055em;margin:0;color:#082c68}
.auth-message h1 span{color:#f15d0d}
.auth-message p{max-width:360px;color:#29466e;font-size:clamp(.9rem,1.7svh,1.05rem);line-height:1.5;margin:18px 0}
.auth-rule{width:108px;height:6px;background:#f15d0d;border-radius:99px}
.auth-caption{font-family:"Comic Sans MS",cursive;font-size:1.35rem;line-height:1.15;max-width:220px;margin-top:60px;transform:rotate(-5deg)}
.auth-caption:after{content:"";height:4px;background:#f15d0d;display:block;width:150px;margin-top:10px;transform:rotate(-8deg)}
.auth-form-panel{min-width:0;padding:clamp(16px,3svh,32px) 9%;display:flex;flex-direction:column;justify-content:center;gap:14px;position:relative}
.auth-back{align-self:flex-end;font-weight:700;color:#092c68;font-size:.82rem}
.auth-form{width:min(100%,510px);margin:0 auto}
.auth-kicker{display:flex;align-items:center;gap:12px;letter-spacing:.2em;font-weight:800;font-size:.65rem;margin-bottom:10px}
.auth-kicker:before{content:"";width:44px;height:4px;border-radius:99px;background:#f15d0d}
.auth-form h2{font-size:clamp(1.75rem,min(3.1vw,5.5svh),2.6rem);line-height:1.12;letter-spacing:-.045em;margin:0;color:#092c68}
.auth-subtitle{font-size:.9rem;line-height:1.45;color:#5a6b87;max-width:460px;margin:10px 0 16px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.field{display:block;margin:0 0 12px;color:#101820;font-size:.85rem;font-weight:700}
.field-wrap select{border:0;outline:0;width:100%;font:inherit;font-weight:400;color:#526078;background:transparent;appearance:none}
@media(max-width:600px){.field-grid{grid-template-columns:1fr}}
.field>span:first-child{display:block;margin-bottom:6px}
.field-wrap{height:44px;border:1px solid #ced7e2;border-radius:9px;display:flex;align-items:center;padding:0 12px;gap:10px}
.field-wrap svg{width:20px;color:#526078;flex:none}
.field-wrap input{border:0;outline:0;min-width:0;width:100%;font:inherit;font-weight:400;color:#526078;background:transparent}
.field-wrap:focus-within{outline:2px solid #092c68;outline-offset:2px}
.auth-options{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 14px;color:#526078;font-size:.8rem}
.remember{display:flex;align-items:center;gap:10px}
.remember input{accent-color:#092c68;width:18px;height:18px}
.auth-options a,.auth-signup a{color:#034fbe;text-decoration:underline}
.auth-submit{width:100%;height:44px;border:0;border-radius:99px;background:#ff6507;color:#fff;font-size:.95rem;font-weight:800;cursor:pointer}
.auth-submit:disabled{cursor:wait;opacity:.7}
.auth-status{margin:0 0 12px;padding:8px 12px;border-left:4px solid #d94841;background:#fff0ef;color:#8c2f2b;font-size:.8rem;line-height:1.4}
.auth-status.auth-status-success{border-left-color:#2f8f4e;background:#eefaf1;color:#1f6b39}
.auth-provider{text-decoration:none;font-weight:700;font-size:.92rem}
.auth-provider svg{width:19px;height:19px}
.auth-note{font-size:.82rem;color:#65738a;line-height:1.5;margin:18px 0 0;padding:12px 14px;background:#f6f8fb;border-radius:8px}
.password-toggle{border:0;background:transparent;color:#0d3f78;font-size:.78rem;font-weight:700;cursor:pointer}
.auth-submit:hover{background:#df5200}
.auth-divider{display:flex;align-items:center;gap:10px;color:#61708b;font-size:.78rem;margin:14px 0}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#d5dce5;flex:1}
.auth-providers{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.auth-provider{height:44px;border:1px solid #d1d9e3;border-radius:8px;background:#fff;color:#526078;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.auth-provider b{font-size:1.1rem;color:#000}
.auth-signup{text-align:center;color:#526078;font-size:.82rem;margin:14px 0 0}
.auth-copy{text-align:center;color:#65738a;font-size:.68rem;margin:14px 0 0}
.auth-recovery .auth-visual{background:linear-gradient(135deg,rgba(237,246,252,.93),rgba(255,248,229,.65)),url('corporate/buyer-origin.jpg') center/cover}
.auth-recovery .auth-status{margin-top:16px}
.auth-recovery .auth-submit:disabled{cursor:not-allowed}
/* Keep the entire desktop sign-in visible, including on shorter laptop screens. */
@media(min-width:851px) and (max-height:700px){
  .auth-form-panel{padding-block:14px;gap:10px}
  .auth-form h2{font-size:1.85rem}
  .auth-kicker{margin-bottom:8px}
  .auth-subtitle{margin:8px 0 12px}
  .auth-divider{margin:10px 0}
  .field{margin-bottom:10px}
  .auth-options{margin-bottom:10px}
  .auth-signup,.auth-copy{margin-top:10px}
}
/* Let narrow screens and enlarged text flow naturally without clipping controls. */
@media(max-width:850px){
  .auth-page{grid-template-columns:1fr}
  .auth-visual{padding:24px 7%}
  .auth-brand{margin-bottom:18px}
  .auth-brand img{width:120px}
  .auth-message h1{font-size:clamp(2rem,6vw,2.6rem)}
  .auth-message p{font-size:.9rem;margin:14px 0}
  .auth-form-panel{padding:24px 7%;gap:18px}
  .auth-form h2{font-size:clamp(1.75rem,5vw,2.2rem)}
  .field-wrap input{font-size:16px}
  .auth-options{align-items:flex-start}
  .auth-options a{text-align:right}
}
