/* Google-account-style sign in / sign up */
body.auth { background: #F0F4F9; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0; }
.acard { position: relative; background: #fff; border-radius: 28px; width: min(1040px, 100% - 32px); padding: 36px 40px 32px; overflow: hidden; min-height: 384px; display: flex; flex-direction: column; }
.acard .bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; overflow: hidden; visibility: hidden; }
.acard.busy .bar { visibility: visible; }
.acard .bar::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--green); animation: slide 1.1s infinite ease-in-out; }
@keyframes slide { from { left: -40%; } to { left: 100%; } }
.acard.busy .steps { pointer-events: none; opacity: .6; }

.acard .logo { font-size: 30px; margin-bottom: 4px; }
.acard .steps { flex: 1; display: flex; flex-direction: column; }
.step { display: none; flex: 1; grid-template-columns: 1fr 1fr; gap: 0 48px; animation: fadein .25s ease; }
.step.on { display: grid; }
@keyframes fadein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step .left h1 { font-size: 36px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 22px 0 14px; color: #1F1F1F; }
.step .left p { margin: 0; font-size: 16px; color: #1F1F1F; }
.step .right { padding-top: 24px; display: flex; flex-direction: column; }
.step .actions { margin-top: auto; padding-top: 36px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

/* Outlined field with floating label */
.of { position: relative; margin-bottom: 18px; }
.of input { width: 100%; height: 56px; border: 1px solid #747775; border-radius: 4px; padding: 16px 15px 0; font-size: 16px; outline: none; background: transparent; color: #1F1F1F; }
.of input:focus { border: 2px solid var(--green); padding-left: 14px; }
.of label { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); padding: 0 4px; background: #fff; color: #444746; font-size: 16px; pointer-events: none; transition: all .15s ease; }
.of input:focus + label, .of input:not(:placeholder-shown) + label { top: 0; font-size: 12px; }
.of input:focus + label { color: var(--green); }
.of.bad input { border: 2px solid var(--danger); padding-left: 14px; }
.of.bad label { color: var(--danger); }
.ferr { display: none; color: var(--danger); font-size: 12px; margin: -12px 0 14px; align-items: center; gap: 6px; }
.ferr.on { display: flex; }
.ferr::before { content: "!"; width: 14px; height: 14px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.hint { font-size: 12px; color: #444746; margin: -10px 0 16px; }
.two { display: grid; grid-template-columns: 1fr; gap: 0; }

.tbtn { background: none; border: 0; color: var(--green); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 99px; text-decoration: none; }
.tbtn:hover { background: #F2FAEA; }
.pbtn { background: var(--green); color: #fff; border: 0; font-weight: 600; font-size: 14px; height: 40px; padding: 0 24px; border-radius: 99px; }
.pbtn:hover { background: var(--green-dark); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.small-link { color: var(--green); font-weight: 600; font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; align-self: flex-start; }
.helptext { font-size: 14px; color: #444746; margin-top: 28px; }

.acct-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #747775; border-radius: 99px; padding: 4px 10px 4px 4px; font-size: 14px; font-weight: 500; color: #1F1F1F; background: #fff; margin-top: 4px; }
.acct-chip .av { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.acct-chip:hover { background: #F5F5F5; }

.chk { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #1F1F1F; cursor: pointer; margin: -4px 0 8px; }
.chk input { width: 18px; height: 18px; accent-color: var(--green); }

.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--lime-soft); color: var(--green); display: grid; place-items: center; font-size: 34px; margin: 26px 0 8px; }

.afoot { width: min(1040px, 100% - 32px); display: flex; justify-content: space-between; font-size: 12px; color: #444746; padding: 14px 8px 0; }
.afoot a { text-decoration: none; margin-left: 24px; }
.afoot a:hover { text-decoration: underline; }

@media (max-width: 840px) {
  .acard { padding: 24px 24px 22px; border-radius: 0; width: 100%; min-height: calc(100vh - 60px); }
  body.auth { background: #fff; justify-content: flex-start; padding: 0; }
  .step.on { display: flex; flex-direction: column; }
  .step .left h1 { font-size: 28px; margin-top: 18px; }
  .step .right { padding-top: 28px; flex: 1; }
  .afoot { width: 100%; padding: 12px 24px 20px; }
}

/* Customer / Partner choice cards */
.role-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 1px solid #C4C7C5; border-radius: 16px; padding: 16px; margin-bottom: 12px; color: #1F1F1F; transition: border-color .15s, background .15s, transform .15s; }
.role-card:hover { border-color: var(--green); background: #F7FFF0; }
.role-card:active { transform: scale(.98); }
.role-card .ri { width: 48px; height: 48px; border-radius: 12px; background: var(--lime-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.role-card .rt { flex: 1; min-width: 0; }
.role-card .rt b { display: block; font-size: 16px; font-weight: 600; }
.role-card .rt small { display: block; font-size: 13px; color: #444746; margin-top: 2px; }
.role-card .ra { font-size: 26px; color: #747775; }

/* Pill pickers on the partner details step */
.qlabel { font-size: 14px; font-weight: 600; color: #1F1F1F; margin: 6px 0 8px; }
.qlabel small { font-weight: 400; color: #444746; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pills button { border: 1px solid #C4C7C5; background: #fff; border-radius: 99px; padding: 8px 14px; font-size: 14px; color: #1F1F1F; }
.pills button.on { border-color: var(--green); background: #F2FAEA; color: var(--green); font-weight: 600; }
