/* ITN Cooperative — Sign Up page */
:root{
  --title:#0B7A2A;--green:#0E7A2E;--ink:#1B2520;--ink2:#3E4A43;--muted:#6B766F;
  --red:#C62828;--red-bg:#FDECEA;
  --field-grad:linear-gradient(90deg,#0A5E2C 0%,#0F7D2D 38%,#1E9A25 70%,#7CC520 100%);
  --btn-grad:linear-gradient(90deg,#0A6A2A 0%,#13882B 50%,#6CBF1A 100%);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);font-size:15px;
  -webkit-font-smoothing:antialiased;background:#FBF1E6}
a{color:var(--title);font-weight:700;text-decoration:none}
a:hover{text-decoration:underline}
svg.i{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------- background ---------- */
/* phones (tall screens): the tall image */
.bg{position:fixed;inset:0;z-index:0;background:#FBF1E6 url(../images/itnbg-auth.jpeg) center bottom/cover no-repeat}
/* laptops and wide screens: the wide image, so the top leaves and bottom coins both show */
@media (min-aspect-ratio:1/1){
  .bg{background-image:url(../images/itnbg-auth-wide.jpeg);background-position:center}
}

/* ---------- white card ---------- */
.page{position:relative;z-index:1;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px 18px}
.card{width:100%;max-width:600px;background:#fff;border-radius:30px;padding:30px 44px 34px;
  box-shadow:0 2px 6px rgba(40,60,20,.06),0 30px 70px rgba(40,60,20,.16)}
.logo{display:flex;justify-content:center}
.logo img{height:140px}
h1{font-size:44px;font-weight:800;color:var(--title);letter-spacing:-.02em;line-height:1.1;margin-top:12px}
.sub{font-size:18px;color:var(--ink2);margin-top:6px;font-weight:500}
form{margin-top:26px}

/* ---------- green gradient fields ---------- */
.gf{margin-bottom:14px}
.gfield{position:relative;display:flex;align-items:center;height:56px;background:var(--field-grad);color:#fff;
  border-radius:0 0 28px 0;box-shadow:0 4px 12px rgba(14,122,46,.18),inset 0 1px 0 rgba(255,255,255,.18)}
.gfield:focus-within{box-shadow:0 0 0 3px rgba(124,197,32,.45),0 6px 16px rgba(14,122,46,.25)}
.gfield .ico{width:64px;display:grid;place-items:center;flex:none}
.gfield .div{width:1.5px;height:28px;background:rgba(255,255,255,.85);flex:none}
.gfield input,.gfield select{flex:1;min-width:0;height:100%;border:none;outline:none;background:transparent;color:#fff;
  font:inherit;font-size:16.5px;font-weight:500;padding:0 18px;-webkit-appearance:none;appearance:none;border-radius:0 0 28px 0}
.gfield input::placeholder{color:rgba(255,255,255,.95);opacity:1}
.gfield select{cursor:pointer;padding-right:50px}
.gfield select option{color:var(--ink);background:#fff}
.gfield select.empty{color:rgba(255,255,255,.95)}
.gfield .chev,.gfield .eye{position:absolute;right:20px;top:50%;transform:translateY(-50%);color:#fff;pointer-events:none;display:grid}
.gfield .eye{pointer-events:auto;background:none;border:none;cursor:pointer;padding:4px;right:16px}
.gfield .eye svg{width:28px;height:28px}
.gfield input.pw{padding-right:58px}
/* date of birth: show "Date of Birth" until a date is picked */
.gfield input[type=date]{color-scheme:dark;padding-right:50px}
.gfield input[type=date]::-webkit-calendar-picker-indicator{opacity:0;position:absolute;right:0;width:60px;height:100%;cursor:pointer}
.gfield .ph{position:absolute;left:83px;color:rgba(255,255,255,.95);font-size:16.5px;font-weight:500;pointer-events:none}
.gfield input[type=date]:invalid:not(:focus){color:transparent}
.gfield input[type=date]:valid~.ph,.gfield input[type=date]:focus~.ph{display:none}
/* errors */
.gf.err .gfield{box-shadow:0 0 0 2.5px var(--red),0 4px 12px rgba(198,40,40,.15)}
.ferr{color:var(--red);font-size:13px;font-weight:600;margin:6px 0 0 6px}
.flash{background:var(--red-bg);color:#9F2121;border:1px solid #F5C6C2;border-radius:14px;padding:12px 14px;font-size:14px;font-weight:600;margin-top:18px}

/* ---------- "Invited by" box ---------- */
.invited{display:flex;align-items:center;gap:10px;background:#EEF8E6;border:1px solid #CDE8B5;border-radius:14px;
  padding:11px 14px;margin-bottom:16px;color:#245A16;font-size:14.5px;font-weight:600}
.invited .badge{width:32px;height:32px;border-radius:50%;background:var(--field-grad);color:#fff;display:grid;place-items:center;flex:none}
.invited .badge svg{width:17px;height:17px;stroke-width:2.2}
.invited a{margin-left:auto;font-size:13.5px}
.ref-live{font-size:13px;font-weight:600;margin:6px 0 0 6px;color:var(--green)}
.ref-live.bad{color:var(--red)}

/* ---------- terms checkbox ---------- */
.terms{margin:22px 0 24px;text-align:center}
.check{display:inline-flex;align-items:center;gap:12px;font-size:16px;color:var(--ink2);cursor:pointer;font-weight:500;text-align:left}
.check input{position:absolute;opacity:0;width:0;height:0}
.check .box{width:28px;height:28px;border:2px solid var(--green);border-radius:5px;display:grid;place-items:center;flex:none;color:transparent;background:#fff}
.check .box svg{width:18px;height:18px;stroke-width:2.6}
.check input:checked+.box{color:var(--green)}
.check input:focus-visible+.box{box-shadow:0 0 0 3px rgba(124,197,32,.45)}

/* ---------- Create Account button ---------- */
.btn{display:flex;align-items:center;justify-content:center;width:86%;margin:0 auto;height:62px;border:none;cursor:pointer;
  border-radius:0 0 36px 0;background:var(--btn-grad);color:#fff;font:inherit;font-weight:800;font-size:22px;
  letter-spacing:.04em;text-transform:uppercase;position:relative;overflow:hidden;
  box-shadow:0 10px 22px rgba(14,122,46,.30),inset 0 1px 0 rgba(255,255,255,.25);transition:transform .08s,box-shadow .15s}
.btn:after{content:"";position:absolute;inset:0 0 50% 0;background:linear-gradient(180deg,rgba(255,255,255,.18),transparent);pointer-events:none}
.btn:hover{box-shadow:0 14px 28px rgba(14,122,46,.38),inset 0 1px 0 rgba(255,255,255,.25)}
.btn:active{transform:translateY(1px)}
.alt{text-align:center;margin-top:22px;font-size:17px;color:var(--ink2);font-weight:500}
.alt a{font-size:19px;margin-left:6px}

/* ---------- step-by-step ---------- */
.steps{display:flex;align-items:center;gap:8px;margin-top:20px;font-size:13.5px;font-weight:700;color:#9AA49D}
.steps[hidden]{display:none}
.steps .st{display:flex;align-items:center;gap:8px;white-space:nowrap}
.steps .n{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:2px solid #DDE6D6;background:#fff;font-size:13px}
.steps .ln{flex:1;height:3px;border-radius:3px;background:#E3EEDA;min-width:14px}
.steps .st.on{color:var(--green)}
.steps .st.on .n{background:var(--field-grad);border:none;color:#fff;box-shadow:0 4px 10px rgba(14,122,46,.3)}
.steps .st.past{color:var(--green)}
.steps .st.past .n{border-color:var(--green);color:var(--green)}
.steps .ln.past{background:var(--field-grad)}
/* when JavaScript is on, only the current step shows (without JS every field shows) */
.js .step{display:none}
.js .step.on{display:block;animation:stepIn .25s ease}
@keyframes stepIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
.nav{display:flex;gap:14px;align-items:center;margin-top:8px}
.nav .btn{width:auto;flex:1;margin:0}
.nav .btn[hidden]{display:none}
.btn.back{flex:0 0 32%;background:#fff;color:var(--green);border:2px solid #CDE8B5;box-shadow:none}
.btn.back:after{display:none}

/* ---------- after sign-up ---------- */
.done{margin-top:22px;border:1px solid #E3EEDA;border-radius:18px;padding:6px 22px}
.done .kv{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px dashed #E3EEDA;font-size:15.5px}
.done .kv:last-child{border:none}
.done .kv span{color:var(--muted)}
.done .pending{color:#A86F00}
.note{font-size:14px;color:var(--muted);text-align:center;margin-top:16px}

/* ---------- shorter laptop screens: shrink everything so the card fits with no scrolling ---------- */
@media (min-width:601px) and (max-height:900px){
  .page{padding:16px 18px}
  .card{padding:20px 40px 22px}
  .logo img{height:96px}
  h1{font-size:34px;margin-top:4px}
  .sub{font-size:15.5px;margin-top:2px}
  .steps{margin-top:12px}
  form{margin-top:14px}
  .gf{margin-bottom:10px}
  .gfield{height:48px}
  .gfield input,.gfield select,.gfield .ph{font-size:15.5px}
  .invited{padding:8px 14px;margin-bottom:10px}
  .terms{margin:12px 0 14px}
  .btn{height:52px;font-size:19px}
  .alt{margin-top:12px;font-size:15.5px}.alt a{font-size:17px}
  .done{margin-top:14px}.done .kv{padding:9px 0}
  .note{margin-top:10px}
}
@media (min-width:601px) and (max-height:720px){
  .logo img{height:70px}
  h1{font-size:28px}
  .card{padding:16px 36px 18px}
  .gfield{height:44px}
  .btn{height:48px;font-size:17px}
}

/* ---------- phones ---------- */
@media (max-width:600px){
  .page{padding:22px 12px 110px;align-items:flex-start}
  .card{padding:22px 18px 26px;border-radius:24px}
  .logo img{height:96px}
  .steps .t{display:none}
  .steps .st.on .t{display:inline}
  h1{font-size:34px}
  .sub{font-size:16px}
  .gfield{height:52px}
  .gfield .ico{width:54px}
  .gfield .ph{left:72px}
  .gfield input,.gfield select,.gfield .ph{font-size:16px}
  .btn{width:100%;height:56px;font-size:19px}
  .check{font-size:14.5px}
  .alt{font-size:15.5px}.alt a{font-size:16.5px}
}

/* keep fields green when the browser autofills them */
.gfield input:-webkit-autofill,
.gfield input:-webkit-autofill:hover,
.gfield input:-webkit-autofill:focus{
  -webkit-text-fill-color:#fff;
  caret-color:#fff;
  transition:background-color 9999s ease-in-out 0s;
} 