/* SimpleFixRx portal sign-in pages (login, forgot password, choose your form).
   The client's neutral brand skin: pink lives only in the logo artwork. */
.sfx{
  --ivory:#F7F6F2; --stone:#E9E6E0; --stone-2:#D6D2CB; --line:#CFCBC4;
  --ink:#252525; --muted:#686660; --slate:#263238; --slate-2:#1B2429;
  --taupe:#B5A89A; --sage:#A9B5AA; --white:#FFFFFF;
  --serif:'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family:var(--sans); color:var(--ink); background:var(--ivory);
  min-height:100vh; min-height:100dvh; display:flex; flex-direction:column;
  -webkit-font-smoothing:antialiased;
}
.sfx *{box-sizing:border-box}
.sfx-main{flex:1; display:grid; grid-template-columns:1fr; }
@media (min-width:1024px){ .sfx-main{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);} }

/* ---------- form side ---------- */
.sfx-form-side{display:flex; align-items:center; justify-content:center; padding:88px 20px 48px;}
.sfx-card{width:100%; max-width:440px;}
.sfx-logo{display:block; width:184px; height:auto; margin:0 0 36px;}
.sfx-eyebrow{font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); font-weight:500; margin:0 0 10px;}
.sfx-title{font-family:var(--serif); font-weight:600; font-size:clamp(32px,4.4vw,42px); line-height:1.1; color:var(--ink); margin:0 0 10px; letter-spacing:-.01em;}
.sfx-sub{font-size:15px; line-height:1.6; color:var(--muted); margin:0 0 32px;}

.sfx-alert{border:1px solid var(--line); border-left:3px solid var(--slate); background:var(--white); color:var(--ink); font-size:14px; line-height:1.5; padding:12px 14px; border-radius:10px; margin:0 0 20px;}
.sfx-alert--error{border-left-color:#9A3B2E;}

.sfx-field{margin:0 0 20px;}
.sfx-label{display:block; font-size:13px; font-weight:500; color:var(--ink); margin:0 0 8px; letter-spacing:.01em;}
.sfx-input{width:100%; height:52px; padding:0 16px; font:inherit; font-size:15px; color:var(--ink);
  background:var(--white); border:1px solid var(--line); border-radius:12px; outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;}
.sfx-input::placeholder{color:#9C988F;}
.sfx-input:hover{border-color:var(--taupe);}
.sfx-input:focus{border-color:var(--slate); box-shadow:0 0 0 4px rgba(38,50,56,.12);}
.sfx-input[aria-invalid="true"]{border-color:#9A3B2E;}
.sfx-error{display:block; font-size:13px; color:#9A3B2E; margin-top:6px;}
.sfx-pw{position:relative;}
.sfx-pw .sfx-input{padding-right:52px;}
.sfx-eye{position:absolute; right:6px; top:50%; transform:translateY(-50%); width:40px; height:40px; display:grid; place-items:center;
  background:transparent; border:0; border-radius:10px; color:var(--muted); cursor:pointer; transition:color .18s, background .18s;}
.sfx-eye:hover{color:var(--ink); background:var(--stone);}
.sfx-eye:focus-visible{outline:2px solid var(--slate); outline-offset:1px;}
.sfx-eye svg{width:20px; height:20px;}

.sfx-captcha{display:flex; justify-content:center; margin:4px 0 20px; min-height:78px;}
.sfx-row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 24px; flex-wrap:wrap;}
.sfx-check{display:inline-flex; align-items:center; gap:10px; cursor:pointer; font-size:14px; color:var(--muted); user-select:none;}
.sfx-check input{appearance:none; -webkit-appearance:none; width:18px; height:18px; margin:0; border:1px solid var(--line); border-radius:5px; background:var(--white); display:grid; place-items:center; cursor:pointer; transition:background .15s, border-color .15s;}
.sfx-check input::after{content:""; width:9px; height:5px; border:2px solid var(--white); border-top:0; border-right:0; transform:rotate(-45deg) translate(1px,-1px); opacity:0;}
.sfx-check input:checked{background:var(--slate); border-color:var(--slate);}
.sfx-check input:checked::after{opacity:1;}
.sfx-check input:focus-visible{outline:2px solid var(--slate); outline-offset:2px;}
.sfx-link{font-size:14px; color:var(--slate); font-weight:500; text-decoration:underline; text-decoration-color:var(--taupe); text-underline-offset:4px; transition:text-decoration-color .18s, color .18s;}
.sfx-link:hover{color:var(--ink); text-decoration-color:var(--ink);}

.sfx-btn{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:52px; padding:0 20px; border-radius:999px;
  font:inherit; font-size:15px; font-weight:500; letter-spacing:.02em; text-decoration:none; cursor:pointer; transition:background .18s, color .18s, border-color .18s, transform .18s;}
.sfx-btn:active{transform:translateY(1px);}
.sfx-btn:focus-visible{outline:2px solid var(--slate); outline-offset:3px;}
.sfx-btn--primary{background:var(--slate); color:var(--ivory); border:1px solid var(--slate);}
.sfx-btn--primary:hover{background:var(--ink); border-color:var(--ink);}
.sfx-btn--primary[disabled]{opacity:.7; cursor:progress;}
.sfx-btn--ghost{background:transparent; color:var(--slate); border:1px solid var(--slate);}
.sfx-btn--ghost:hover{background:var(--stone);}
.sfx-btn svg{width:18px; height:18px;}

.sfx-divider{display:flex; align-items:center; gap:14px; margin:28px 0 20px; font-size:13px; color:var(--muted);}
.sfx-divider::before,.sfx-divider::after{content:""; flex:1; height:1px; background:var(--stone-2);}

.sfx-help-mobile{margin:28px 0 0; padding:16px 18px; border-radius:14px; background:var(--stone); font-size:14px; line-height:1.55; color:var(--muted);}
.sfx-help-mobile a{color:var(--ink); font-weight:500; text-decoration:none; white-space:nowrap;}
@media (min-width:1024px){ .sfx-help-mobile{display:none;} }

/* ---------- brand side ---------- */
.sfx-brand{display:none; position:relative; overflow:hidden; background:var(--slate); color:var(--ivory); padding:72px clamp(40px,5vw,80px);}
@media (min-width:1024px){ .sfx-brand{display:flex; flex-direction:column; justify-content:space-between;} }
.sfx-brand::before{content:""; position:absolute; inset:auto -18% -30% auto; width:620px; height:620px; border-radius:50%;
  border:1px solid rgba(247,246,242,.10); box-shadow:0 0 0 70px rgba(247,246,242,.025), 0 0 0 140px rgba(247,246,242,.02);}
.sfx-brand::after{content:""; position:absolute; top:0; left:0; width:100%; height:4px; background:linear-gradient(90deg,var(--taupe),var(--sage));}
.sfx-brand > *{position:relative;}
.sfx-brand-kicker{font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--taupe); margin:0 0 20px; font-weight:500;}
.sfx-brand-title{font-family:var(--serif); font-weight:500; font-size:clamp(40px,4vw,56px); line-height:1.08; margin:0 0 22px; color:var(--ivory); max-width:12ch;}
.sfx-brand-title em{font-style:italic; color:var(--stone-2);}
.sfx-brand-copy{font-size:16px; line-height:1.7; color:rgba(247,246,242,.78); max-width:40ch; margin:0;}
.sfx-points{list-style:none; padding:0; margin:44px 0 0; display:grid; gap:18px; max-width:420px;}
.sfx-points li{display:flex; gap:14px; align-items:flex-start; font-size:15px; line-height:1.55; color:rgba(247,246,242,.88);}
.sfx-points .ico{flex:none; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; border:1px solid rgba(247,246,242,.22); color:var(--stone);}
.sfx-points .ico svg{width:17px; height:17px;}
.sfx-points strong{display:block; color:var(--ivory); font-weight:500;}
.sfx-contact{margin-top:56px; padding-top:24px; border-top:1px solid rgba(247,246,242,.14); font-size:14px; line-height:1.7; color:rgba(247,246,242,.72);}
.sfx-contact a{color:var(--ivory); text-decoration:none; font-weight:500;}
.sfx-contact a:hover{text-decoration:underline; text-underline-offset:3px;}

/* ---------- footer ---------- */
.sfx-foot{border-top:1px solid var(--stone-2); background:var(--ivory); padding:18px 24px; display:flex; flex-wrap:wrap; gap:8px 22px; align-items:center; justify-content:center; font-size:13px; color:var(--muted);}
.sfx-foot a{color:var(--muted); text-decoration:none;}
.sfx-foot a:hover{color:var(--ink); text-decoration:underline; text-underline-offset:3px;}


/* ---------- logo watermark in the slate brand panel (recolored to the panel tones, not pink) ---------- */
.sfx-brand > .sfx-brand-mark{position:absolute; z-index:0; pointer-events:none; right:-6%; bottom:6%; width:96%; max-width:none; aspect-ratio:4000/2267;
  background:linear-gradient(135deg, rgba(233,230,224,.10), rgba(181,168,154,.08) 55%, rgba(169,181,170,.07));
  -webkit-mask:var(--sfx-logo) center/contain no-repeat; mask:var(--sfx-logo) center/contain no-repeat; transform:rotate(-8deg);}
.sfx-brand > :not(.sfx-brand-mark){z-index:1;}
@media (prefers-reduced-motion:reduce){ .sfx *{transition:none!important;} }

/* ---------- shared: page header (register) ---------- */
.sfx-page{flex:1; padding:88px 20px 64px;}
.sfx-wrap{max-width:1120px; margin:0 auto;}
.sfx-head{text-align:center; max-width:640px; margin:0 auto 48px;}
.sfx-head .sfx-logo{margin:0 auto 32px;}
.sfx-head .sfx-sub{margin:0 auto;}
.sfx-steps{display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin:22px 0 0; padding:0; list-style:none; font-size:13px; color:var(--muted);}
.sfx-steps li{display:flex; align-items:center; gap:8px; padding:6px 14px 6px 6px; border:1px solid var(--stone-2); border-radius:999px; background:var(--white);}
.sfx-steps b{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:var(--stone); color:var(--ink); font-weight:500; font-size:12px;}
.sfx-steps li.is-current b{background:var(--slate); color:var(--ivory);}

.sfx-grid{display:grid; gap:16px; grid-template-columns:1fr;}
@media (min-width:640px){ .sfx-grid{grid-template-columns:repeat(2,1fr);} }
@media (min-width:1024px){ .sfx-grid{grid-template-columns:repeat(4,1fr);} }
.sfx-opt{position:relative; display:flex; flex-direction:column; align-items:flex-start; text-align:left; width:100%; min-height:176px; padding:22px 22px 20px;
  background:var(--white); border:1px solid var(--stone-2); border-radius:18px; cursor:pointer; font:inherit; color:var(--ink);
  transition:border-color .18s, box-shadow .18s, transform .18s;}
.sfx-opt:hover{border-color:var(--slate); box-shadow:0 14px 30px -18px rgba(38,50,56,.35); transform:translateY(-2px);}
.sfx-opt:focus-visible{outline:2px solid var(--slate); outline-offset:3px;}
.sfx-opt-cat{font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); font-weight:500; margin:0 0 10px;}
.sfx-opt-name{font-family:var(--serif); font-size:23px; line-height:1.2; font-weight:600; margin:0 0 8px;}
.sfx-opt-desc{font-size:14px; line-height:1.55; color:var(--muted); margin:0 0 18px;}
.sfx-opt-go{margin-top:auto; display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:500; color:var(--slate);}
.sfx-opt-go svg{width:16px; height:16px; transition:transform .18s;}
.sfx-opt:hover .sfx-opt-go svg{transform:translateX(3px);}
.sfx-opt--feature{background:var(--slate); border-color:var(--slate); color:var(--ivory);}
.sfx-opt--feature .sfx-opt-cat{color:var(--taupe);}
.sfx-opt--feature .sfx-opt-desc{color:rgba(247,246,242,.75);}
.sfx-opt--feature .sfx-opt-go{color:var(--ivory);}
.sfx-opt--feature:hover{border-color:var(--ink); background:var(--ink);}
.sfx-note{text-align:center; font-size:14px; color:var(--muted); margin:24px 0 0;}
.sfx-note a{color:var(--slate); font-weight:500; text-decoration:underline; text-decoration-color:var(--taupe); text-underline-offset:4px;}

.sfx-helpband{margin:56px auto 0; max-width:1120px; background:var(--stone); border-radius:24px; padding:36px clamp(24px,4vw,48px); display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:space-between;}
.sfx-helpband h2{font-family:var(--serif); font-weight:600; font-size:28px; margin:0 0 6px; color:var(--ink);}
.sfx-helpband p{margin:0; color:var(--muted); font-size:15px; line-height:1.6; max-width:52ch;}
.sfx-helpband p a{color:var(--ink); font-weight:500; text-decoration:none; white-space:nowrap;}
.sfx-helpband .sfx-btn{width:auto; padding:0 28px;}

/* ---------- forgot-password specifics ---------- */
.sfx-back{display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--muted); text-decoration:none; margin:0 0 28px; transition:color .18s;}
.sfx-back:hover{color:var(--ink);}
.sfx-back svg{width:16px; height:16px;}
.sfx-info{display:flex; gap:12px; align-items:flex-start; background:var(--stone); border-radius:12px; padding:14px 16px; font-size:14px; line-height:1.55; color:var(--muted); margin:0 0 24px;}
.sfx-info svg{flex:none; width:18px; height:18px; margin-top:2px; color:var(--slate);}
.sfx-alert--ok{border-left-color:var(--sage);}

@media (max-width:639px){ .sfx-opt{min-height:0; padding:18px 18px 16px;} .sfx-opt-desc{margin-bottom:12px;} .sfx-head{margin-bottom:32px;} }
@media (min-width:640px){ .sfx-opt--wide{grid-column:span 2;} }

/* login: "Sign up" (registration pop-up) and "Get started" under "New to SimpleFix?" */
.sfx-new-actions{display:grid; gap:12px;}

/* The program cards inside the patient portal (New Order, empty Orders): no full-screen page of their own. */
.sfx.sfx--portal{min-height:0; background:transparent;}
.sfx--portal .sfx-page{padding:40px 24px 56px;}
.sfx--portal .sfx-helpband .sfx-actions{display:flex; flex-wrap:wrap; gap:12px;}
.sfx--inline .sfx-page{padding:8px 0 24px;}
/* This file has the sign-in page's own .sfx-brand panel; keep the portal sidebar's logo area as its skin draws it. */
.sfx-side .sfx-brand{display:flex; background:transparent; color:inherit; overflow:visible;}
.sfx-side .sfx-brand::before, .sfx-side .sfx-brand::after{content:none;}
