/* EKOSYSCO look for the SaaS sign-up page: same tokens as ekosysco.com (EKO.Website/client/src/styles/tokens.css), Cairo, 6/10/16 px radii.
   Loaded last; it only restyles the sign-up page (body.signup-body). Dark by default, light follows the visitor's system. */
body.signup-body {
  --c-canvas: 7 11 20; --c-surface: 11 17 29; --c-raised: 16 24 40; --c-line: 28 36 52; --c-line-strong: 44 56 78;
  --c-fg: 238 242 248; --c-fg-muted: 163 174 194; --c-fg-subtle: 124 136 158;
  --c-accent: 138 164 255; --c-accent-strong: 169 188 255; --c-on-accent: 7 16 42; --c-accent-2: 94 214 200;
  --c-success: 52 211 153; --c-warning: 251 191 36; --c-danger: 248 113 113;
  --glow: 92 124 250;
  font-family: 'Cairo', 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif;
  background: rgb(var(--c-canvas)); color: rgb(var(--c-fg)); color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  body.signup-body {
    --c-canvas: 255 255 255; --c-surface: 247 248 250; --c-raised: 255 255 255; --c-line: 230 233 238; --c-line-strong: 205 210 218;
    --c-fg: 11 18 32; --c-fg-muted: 71 84 103; --c-fg-subtle: 102 112 133;
    --c-accent: 47 91 234; --c-accent-strong: 35 73 200; --c-on-accent: 255 255 255; --c-accent-2: 20 184 166;
    --c-success: 4 120 87; --c-warning: 181 71 8; --c-danger: 192 38 38; --glow: 47 91 234; color-scheme: light;
  }
}
.signup-body *, .signup-body *::before, .signup-body *::after { box-sizing: border-box; }

/* top bar */
.eko-top { position: sticky; top: 0; z-index: 40; background: rgb(var(--c-canvas) / .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgb(var(--c-line)); }
.eko-bar { max-width: 75rem; margin: 0 auto; padding: 0 1.25rem; height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.eko-brand { display: inline-flex; align-items: center; gap: .65rem; color: rgb(var(--c-fg)); text-decoration: none; font-weight: 800; letter-spacing: .12em; }
.eko-brand img { border-radius: 10px; display: block; }
.eko-back { color: rgb(var(--c-fg-muted)); text-decoration: none; font-size: .9rem; padding: .5rem 1rem; border: 1px solid rgb(var(--c-line-strong)); border-radius: 9999px; transition: color .15s, border-color .15s; }
.eko-back:hover { color: rgb(var(--c-accent)); border-color: rgb(var(--c-accent) / .6); }

/* page */
.eko-main { position: relative; overflow: hidden; padding: 3rem 1.25rem 4.5rem; min-height: calc(100vh - 9rem); }
.eko-mesh { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(48% 50% at 85% 0%, rgb(var(--glow) / .22), transparent 70%),
  radial-gradient(40% 45% at 15% 5%, rgb(var(--c-accent-2) / .12), transparent 70%); }
.eko-wrap { position: relative; max-width: 52rem; margin: 0 auto; }
.signup-body .signup-head { color: rgb(var(--c-fg)); margin-bottom: 1.75rem; }
.signup-body .signup-head h1 { color: rgb(var(--c-fg)); font-size: clamp(2rem, 1.5rem + 2vw, 2.875rem); font-weight: 700; line-height: 1.25; margin: 1rem 0 .5rem; letter-spacing: 0; }
.signup-body .signup-head h1 small { display: block; margin-top: .5rem; font-size: 1.05rem; font-weight: 600; color: rgb(var(--c-success)); }
.signup-body .badge-pill { background: rgb(var(--c-raised)); border: 1px solid rgb(var(--c-line-strong)); color: rgb(var(--c-fg-muted)); font-size: .8rem; font-weight: 600; padding: .4rem .9rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: .5rem; }
.signup-body .badge-pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: rgb(var(--c-accent-2)); }
.signup-body .wizard-steps span { background: rgb(var(--c-raised)); border: 1px solid rgb(var(--c-line)); color: rgb(var(--c-fg-muted)); font-weight: 600; font-size: .8rem; }
.signup-body .wizard-steps b { background: rgb(var(--c-accent)); color: rgb(var(--c-on-accent)); }

/* institution picker */
.signup-body .inst-type-label { color: rgb(var(--c-fg)); font-weight: 700; font-size: 1rem; }
.signup-body .inst-type-btn { background: rgb(var(--c-raised)); border: 1px solid rgb(var(--c-line)); color: rgb(var(--c-fg)); border-radius: 16px; box-shadow: none; transition: border-color .15s, transform .15s, background .15s; }
.signup-body .inst-type-btn:hover { border-color: rgb(var(--c-accent) / .6); transform: translateY(-2px); background: rgb(var(--c-raised)); }
.signup-body .inst-type-btn.active { border-color: rgb(var(--c-accent)); background: rgb(var(--c-accent) / .10); box-shadow: 0 0 0 3px rgb(var(--c-accent) / .18); }
.signup-body .inst-title { color: rgb(var(--c-fg)); font-weight: 700; }
.signup-body .inst-badge.available { background: rgb(var(--c-success) / .14); color: rgb(var(--c-success)); }
.signup-body .inst-badge.coming-soon { background: rgb(var(--c-warning) / .14); color: rgb(var(--c-warning)); }
.signup-body .coming-soon-box { background: rgb(var(--c-warning) / .08); border: 1px solid rgb(var(--c-warning) / .35); border-radius: 12px; }
.signup-body .coming-soon-box h3 { color: rgb(var(--c-warning)); }
.signup-body .coming-soon-box p { color: rgb(var(--c-fg-muted)); }

/* cards, form */
.signup-body .card { background: rgb(var(--c-raised)); border: 1px solid rgb(var(--c-line)); border-radius: 16px; box-shadow: 0 24px 56px -20px rgb(0 0 0 / .45); color: rgb(var(--c-fg)); }
.signup-body .card:hover { transform: none; box-shadow: 0 24px 56px -20px rgb(0 0 0 / .45); }
.signup-body .card h2, .signup-body .card h3 { color: rgb(var(--c-fg)); }
.signup-body label { color: rgb(var(--c-fg-muted)); font-weight: 600; font-size: .85rem; }
.signup-body input, .signup-body select, .signup-body textarea { background: rgb(var(--c-surface)); color: rgb(var(--c-fg)); border: 1px solid rgb(var(--c-line-strong)); border-radius: 10px; font-family: inherit; min-height: 2.75rem; }
.signup-body input::placeholder, .signup-body textarea::placeholder { color: rgb(var(--c-fg-subtle)); }
.signup-body input:focus, .signup-body select:focus, .signup-body textarea:focus { outline: none; border-color: rgb(var(--c-accent)); box-shadow: 0 0 0 3px rgb(var(--c-accent) / .2); }
.signup-body button, .signup-body .btn.primary { background: rgb(var(--c-accent)); color: rgb(var(--c-on-accent)); border: 0; border-radius: 9999px; font-family: inherit; font-weight: 700; box-shadow: 0 8px 22px -8px rgb(var(--c-accent) / .55); }
.signup-body button:hover:not(:disabled) { background: rgb(var(--c-accent-strong)); }
.signup-body button.ghost { background: transparent; color: rgb(var(--c-accent)); border: 1px solid rgb(var(--c-accent) / .55); box-shadow: none; }
.signup-body .inst-type-btn { box-shadow: none; border-radius: 16px; }
.signup-body .hint { color: rgb(var(--c-fg-subtle)); }
.signup-body .hint.ok { color: rgb(var(--c-success)); }
.signup-body .hint.bad { color: rgb(var(--c-danger)); }
.signup-body .cred, .signup-body .otp { background: rgb(var(--c-surface)); border-color: rgb(var(--c-line-strong)); color: rgb(var(--c-fg)); }
.signup-body dialog { background: rgb(var(--c-raised)); color: rgb(var(--c-fg)); border: 1px solid rgb(var(--c-line-strong)); border-radius: 16px; }
.signup-body dialog::backdrop { background: rgb(0 0 0 / .6); }

/* footer */
.eko-foot { max-width: 75rem; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .8rem; color: rgb(var(--c-fg-subtle)); border-top: 1px solid rgb(var(--c-line)); }
.eko-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.eko-foot a { color: rgb(var(--c-fg-muted)); text-decoration: none; }
.eko-foot a:hover { color: rgb(var(--c-accent)); }
body.signup-body { display: flex; flex-direction: column; }
body.signup-body .eko-main { flex: 1; width: 100%; }
@media (max-width: 640px) { .eko-main { padding: 2rem 1rem 3rem; } .eko-bar { height: 3.75rem; } }

/* the chosen type (set on ekosysco.com): a chip, not a picker */
.signup-body .inst-chosen { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; padding: .6rem 1.1rem; background: rgb(var(--c-accent) / .10); border: 1px solid rgb(var(--c-accent) / .45); border-radius: 9999px; }
.signup-body .inst-chosen .inst-icon { font-size: 1.4rem; line-height: 1; }

/* motion: the same vocabulary as ekosysco.com (fade-in-up, float, pulse, gradient-shift, shimmer); all off for reduced-motion */
@keyframes eko-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes eko-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, -26px, 0) scale(1.06); } }
@keyframes eko-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--c-accent-2) / .55); } 70% { box-shadow: 0 0 0 .55rem rgb(var(--c-accent-2) / 0); } }
@keyframes eko-shift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes eko-shimmer { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
.eko-mesh::before, .eko-mesh::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.eko-mesh::before { width: 22rem; height: 22rem; top: -6rem; right: 8%; background: rgb(var(--glow) / .35); animation: eko-float 9s ease-in-out infinite; }
.eko-mesh::after { width: 18rem; height: 18rem; top: 14rem; left: 4%; background: rgb(var(--c-accent-2) / .22); animation: eko-float 12s ease-in-out -4s infinite; }
.signup-body .signup-head > * { animation: eko-up .7s cubic-bezier(.22, 1, .36, 1) both; }
.signup-body .signup-head > :nth-child(2) { animation-delay: .08s; }
.signup-body .signup-head > :nth-child(3) { animation-delay: .16s; }
.signup-body #view > * { animation: eko-up .7s cubic-bezier(.22, 1, .36, 1) .24s both; }
.signup-body #view > :nth-child(2) { animation-delay: .34s; }
.signup-body .badge-pill .dot { animation: eko-pulse 2.2s ease-out infinite; }
.signup-body .signup-head h1 small { background: linear-gradient(90deg, rgb(var(--c-success)), rgb(var(--c-accent-2)), rgb(var(--c-accent)), rgb(var(--c-success))); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: eko-shift 6s linear infinite; }
.signup-body .wizard-steps span { animation: eko-up .6s cubic-bezier(.22, 1, .36, 1) both; }
.signup-body .wizard-steps span:nth-child(1) { animation-delay: .25s; } .signup-body .wizard-steps span:nth-child(2) { animation-delay: .33s; }
.signup-body .wizard-steps span:nth-child(3) { animation-delay: .41s; } .signup-body .wizard-steps span:nth-child(4) { animation-delay: .49s; }
.signup-body button { position: relative; overflow: hidden; transition: transform .15s, background .15s, box-shadow .2s; }
.signup-body button:hover:not(:disabled) { transform: translateY(-1px); }
.signup-body button:not(.ghost)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28), transparent); transform: translateX(-120%) skewX(-18deg); }
.signup-body button:not(.ghost):hover:not(:disabled)::after { animation: eko-shimmer .9s ease; }
.signup-body .card { transition: border-color .25s, transform .25s; }
.signup-body .card:focus-within { border-color: rgb(var(--c-accent) / .5); }
.eko-brand img { transition: transform .3s; } .eko-brand:hover img { transform: rotate(-6deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .eko-mesh::before, .eko-mesh::after, .signup-body .signup-head > *, .signup-body #view > *, .signup-body .badge-pill .dot, .signup-body .signup-head h1 small, .signup-body .wizard-steps span, .signup-body button::after { animation: none !important; }
}
