/* ZeySale — sign up / log in */
.auth-page { min-height: 100vh; min-height: 100dvh; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth__main { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 28px 24px 22px; }
.auth__top { width: 100%; max-width: 480px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth__switch { margin: 0; font-size: .92rem; color: var(--muted); }
.auth__switch a, .auth__alt a, .check a { color: var(--violet-d); font-weight: 600; }
.auth__switch a:hover, .auth__alt a:hover, .check a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth__card { width: 100%; max-width: 480px; margin: auto 0; padding: 40px 0 24px; overflow-x: clip; }
.auth__legend { padding: 0; margin: 0 0 26px; border: 0; }
.auth__legend h1, .auth__h { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; }
.auth__sub { color: var(--muted); margin: 0; }
.auth__plan { display: inline-block; padding: 2px 10px; margin-right: 6px; border-radius: 99px; background: var(--cta); color: var(--navy); font-weight: 600; font-size: .8rem; }
.auth__obj { width: 88px; height: 88px; margin: -10px 0 4px -10px; animation: objBob 4.5s ease-in-out infinite; }
.auth__legal { margin: 0; font-size: .82rem; color: var(--muted); }
.auth__legal a:hover { color: var(--navy); }

/* steps */
.auth__steps { list-style: none; display: flex; gap: 8px; margin: 0 0 28px; padding: 0; }
.auth__steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); transition: border-color .4s var(--ease), color .3s; }
.auth__steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lav); font-size: .75rem; transition: background .3s, color .3s; }
.auth__steps li.is-on { border-color: var(--violet); color: var(--navy); }
.auth__steps li.is-on span { background: var(--violet); color: #fff; }
.auth__steps li.is-done span { background: var(--green); color: #fff; font-size: 0; }
.auth__steps li.is-done span::after { content: "✓"; font-size: .75rem; }
.auth__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.auth__step:not(.is-on) { display: none; }
.auth__step.is-on, .auth__view.is-on { animation: stepIn .45s var(--ease); }
.auth__step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } }

/* fields */
.f { display: grid; gap: 7px; margin-bottom: 18px; }
.f label, .f__label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.f__labelrow { display: flex; justify-content: space-between; align-items: baseline; }
.f input:not([type=radio]):not([type=checkbox]) { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255,255,255,.85); color: var(--navy); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.f input::placeholder { color: #a5a1c4; }
.f input:hover { border-color: var(--lav-3); }
.f input:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(123,97,255,.15); }
.f input[aria-invalid="true"] { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225,29,72,.1); }
.f__wrap { position: relative; }
.f__wrap input { padding-right: 52px !important; }
.f__eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.f__eye:hover { background: var(--lav); color: var(--navy); }
.f__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.f__eye[aria-pressed="true"] svg { stroke: var(--violet-d); }
.f__eye[aria-pressed="true"]::after { content: ""; position: absolute; width: 22px; height: 2px; background: var(--violet-d); rotate: -45deg; border-radius: 2px; }
.f__ok { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: .75rem; opacity: 0; scale: .5; transition: opacity .25s, scale .35s var(--ease); pointer-events: none; }
.f__wrap.is-ok .f__ok { opacity: 1; scale: 1; }
.f__err { margin: 0; min-height: 0; font-size: .84rem; color: #e11d48; }
.f__err:empty { display: none; }
.f__caps { margin: 0; font-size: .82rem; color: #b45309; }
.opt { font-weight: 400; color: var(--muted); }
.link { color: var(--violet-d); font-weight: 600; font-size: .88rem; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* workspace address */
.slug { position: relative; display: flex; align-items: center; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255,255,255,.85); transition: border-color .2s, box-shadow .2s; }
.slug:focus-within { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(123,97,255,.15); }
.slug.is-bad { border-color: #e11d48; }
.slug.is-ok { border-color: #22c55e; }
.f .slug input { flex: 1; min-width: 0; height: 100%; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 4px 0 16px !important; text-align: right; font-weight: 600; }
.slug__suffix { color: var(--muted); font-weight: 500; padding-right: 44px; white-space: nowrap; }
.slug__state { position: absolute; right: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: #fff; }
.slug.is-ok .slug__state { background: #22c55e; } .slug.is-ok .slug__state::after { content: "✓"; }
.slug.is-bad .slug__state { background: #e11d48; } .slug.is-bad .slug__state::after { content: "!"; }
.slug.is-checking .slug__state { border: 2.5px solid var(--lav-2); border-top-color: var(--violet); animation: spin .7s linear infinite; }
.f__hint { margin: 0; font-size: .82rem; color: var(--muted); }
.f__2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.f select { width: 100%; height: 54px; padding: 0 40px 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23625d86' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat; color: var(--navy); font-size: 1rem; appearance: none; transition: border-color .2s, box-shadow .2s; }
.f select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123,97,255,.15); }
.auth__invite { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #f1edff; color: var(--navy); font-size: .92rem; }
.auth__invite b { font-weight: 700; }

/* password strength */
.meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 6px; }
.meter i { height: 5px; border-radius: 5px; background: var(--line); transition: background .3s; }
.meter span { font-size: .78rem; font-weight: 600; color: var(--muted); min-width: 70px; text-align: right; }
.meter[data-s="1"] i:nth-child(-n+1) { background: #f43f5e; }
.meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #22c55e; }
.meter[data-s="4"] i:nth-child(-n+4) { background: #16a34a; }

/* checkbox */
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: .9rem; color: var(--text); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--lav-3); background: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check__box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; translate: 0 -1px; opacity: 0; transition: opacity .2s; }
.check input:checked + .check__box { background: var(--violet); border-color: var(--violet); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--violet); outline-offset: 2px; }
.f__err + .btn, #sTerms-err:not(:empty) { margin-top: -12px; margin-bottom: 14px; }

/* pill radios */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: rgba(255,255,255,.85); font-weight: 500; font-size: .92rem; color: var(--navy); transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease); }
.pills span:hover { border-color: var(--lav-3); transform: translateY(-1px); }
.pills input:checked + span { border-color: var(--violet); background: #f3f0ff; box-shadow: 0 0 0 3px rgba(123,97,255,.14); }
.pills input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.pills .bi { --s: 22px; border-radius: 6px; box-shadow: none; }

.auth__row { display: flex; gap: 10px; margin-top: 8px; }
.auth__grow { flex: 1; }
.auth__alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; font-size: .9rem; }
.auth__alert a { font-weight: 600; text-decoration: underline; }
.auth__alt { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.auth__trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 0; padding: 0; font-size: .84rem; color: var(--muted); }
.auth__done { text-align: center; }
.auth__done-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: var(--navy); font-size: 2rem; animation: aPop .6s var(--ease); }
.auth__done .btn { margin-top: 24px; }

/* loading button */
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(22,15,69,.25); border-top-color: var(--navy); animation: spin .7s linear infinite; }
.is-busy .spin { display: inline-block; }
.is-busy { pointer-events: none; opacity: .85; }
@keyframes spin { to { rotate: 360deg; } }

/* brand side panel */
.auth__side { position: relative; padding: 16px 16px 16px 0; }
.auth__side-inner { position: sticky; top: 16px; height: calc(100vh - 32px); height: calc(100dvh - 32px); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; background: radial-gradient(520px 320px at 50% 0%, rgba(123,97,255,.28), transparent 70%), radial-gradient(480px 300px at 50% 110%, rgba(114,229,220,.35), transparent 70%), linear-gradient(160deg, #eee8ff, #e4f7f4); border: 1px solid #fff; box-shadow: 0 40px 100px -50px rgba(60,40,170,.4); }
.auth__mascot { width: 200px; height: 200px; filter: drop-shadow(0 20px 26px rgba(60,40,170,.3)); animation: mascotHop 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.auth__chat { display: flex; flex-direction: column; gap: 8px; width: min(340px, 100%); margin: 6px 0 28px; }
.auth__chat .bub { font-size: .9rem; animation: aIn .6s var(--ease) both; }
.auth__chat .bub--in { animation-delay: .5s; }
.auth__chat .bub--out { animation-delay: 1.4s; }
.auth__chip { align-self: center; padding: 6px 12px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-s); font-size: .82rem; font-weight: 600; color: var(--navy); animation: aPop .6s var(--ease) 2.3s both; }
.auth__side-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; max-width: 380px; }
.auth__perks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.auth__perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--navy); }
.auth__perks span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.8); box-shadow: var(--shadow-s); }
.auth__float .bi { position: absolute; --s: 52px; animation: floaty 7s ease-in-out infinite; }
.auth__float .bi:nth-child(1) { left: 9%; top: 10%; }
.auth__float .bi:nth-child(2) { right: 10%; top: 14%; --s: 46px; animation-delay: -2s; }
.auth__float .bi:nth-child(3) { left: 12%; bottom: 14%; --s: 44px; animation-delay: -4s; }
.auth__float .bi:nth-child(4) { right: 9%; bottom: 20%; animation-delay: -1s; }
.auth__float .bi:nth-child(5) { left: 50%; top: 5%; --s: 34px; opacity: .7; animation-delay: -3s; }

/* short screens: tighten the side panel */
@media (max-height: 760px) and (min-width: 961px) {
  .auth__mascot { width: 140px; height: 140px; }
  .auth__chat { margin-bottom: 16px; }
  .auth__perks { display: none; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
}
@media (max-width: 480px) {
  .auth__main { padding: 18px 16px 18px; }
  .auth__switch { font-size: .85rem; }
  .auth__card { padding-top: 28px; }
  .auth__steps li { font-size: .8rem; }
  .auth__row { flex-direction: column-reverse; }
  .f__2 { grid-template-columns: 1fr; gap: 0; }
  .slug__suffix { font-size: .9rem; }
  .f input:not([type=radio]):not([type=checkbox]) { font-size: 16px; } /* no iOS zoom on focus */
}
@media (prefers-reduced-motion: reduce) {
  .auth__chat .bub, .auth__chip { opacity: 1; animation: none; }
}
