/* The sign-up flow (Register steps 1–2, ConfirmEmail step 3) on _SignupLayout. Brand colours come from
   .theme-parent and the brand's AuthThemeStyle (--accent, --accent-strong, --accent-deep, --accent-tint,
   --accent-ring); the heading face from --heading-font (Nunito for Koleeza, Fraunces for Auxora). */
.signup-body { margin: 0; background: #f4f8fd; font-family: Nunito, system-ui, sans-serif; color: #1f2937; }
.signup { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.signup h1, .signup h2 { font-family: var(--heading-font); }

/* soft brand shapes behind the card */
.signup-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(2px); }
.signup-blob-1 { width: 520px; height: 520px; right: -200px; top: -220px; background: radial-gradient(circle at 30% 30%, var(--accent-tint), rgba(255,255,255,0)); }
.signup-blob-2 { width: 440px; height: 440px; left: -180px; bottom: -200px; background: radial-gradient(circle at 60% 40%, rgba(255, 201, 40, .28), rgba(255,255,255,0)); }

/* header */
.signup-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; }
.signup-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.signup-brand img { height: 38px; width: auto; }
.signup-tagline { font-size: .82rem; font-weight: 700; color: #6b7280; }
.signup-have { font-size: .9rem; font-weight: 600; color: #6b7280; }
.signup-have a { color: var(--accent-strong); font-weight: 800; text-decoration: none; }
.signup-have a:hover { text-decoration: underline; }

/* stepper */
.signup-main { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: .5rem 1rem 3rem; }
.signup-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; align-items: flex-start; }
.signup-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: #9ca3af; }
.signup-steps li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: #dbe3ee; z-index: 0; }
.signup-steps li.is-done + li::before, .signup-steps li.is-current + li::before { background: #dbe3ee; }
.signup-steps li.is-done + li.is-current::before, .signup-steps li.is-done + li.is-done::before { background: var(--accent); }
.signup-steps .num { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #dbe3ee; color: #9ca3af; font-weight: 800; font-size: .95rem; }
.signup-steps .num .tick { display: none; width: 18px; height: 18px; }
.signup-steps li.is-current { color: var(--accent-strong); }
.signup-steps li.is-current .num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-ring); }
.signup-steps li.is-done { color: #6b7280; }
.signup-steps li.is-done .num { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent-strong); }
.signup-steps li.is-done .num .n { display: none; }
.signup-steps li.is-done .num .tick { display: block; }

/* card */
.signup-card { background: #fff; border: 1px solid #e6ebf2; border-radius: 22px; padding: 2rem 2rem 1.8rem; box-shadow: 0 18px 50px rgba(35, 78, 112, .08); }
.signup-card h1 { font-size: 1.7rem; font-weight: 800; color: var(--accent-deep); margin: 0 0 .3rem; letter-spacing: -.01em; }
.signup-card .lead { color: #6b7280; font-weight: 600; margin: 0 0 1.4rem; }
.signup-card .auth-label { margin-top: .1rem; }
.signup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signup-card .btn-auth { margin-top: .4rem; }
.signup-actions { display: flex; gap: .8rem; margin-top: 1.2rem; }
.signup-actions .btn-auth { margin: 0; flex: 1; }
.btn-back { flex: 0 0 auto; height: 54px; padding: 0 1.4rem; border-radius: 14px; border: 1.5px solid #dbe3ee; background: #fff; color: #374151; font: inherit; font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.btn-back:hover { border-color: var(--accent); color: var(--accent-strong); }

/* the terms box above the scroll panel */
.signup-terms-note { display: flex; gap: .8rem; align-items: flex-start; background: var(--accent-tint); border-radius: 14px; padding: .9rem 1rem; margin: .4rem 0 .9rem; }
.signup-terms-note .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--accent-strong); display: grid; place-items: center; }
.signup-terms-note b { display: block; color: var(--accent-deep); font-size: .95rem; }
.signup-terms-note p { margin: .1rem 0 0; font-size: .85rem; font-weight: 600; color: #4b5563; }
.signup-terms-note a { color: var(--accent-strong); text-decoration: underline; }
.signup-error { display: none; color: #b91c1c; font-weight: 700; font-size: .9rem; margin: -.4rem 0 .8rem; }

/* step 2: the review */
.review-box { border: 1.5px solid #e6ebf2; border-radius: 16px; padding: 1.1rem 1.2rem; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.review-head b { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.review-head button { border: 0; background: none; color: var(--accent-strong); font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.review-row { display: flex; gap: .9rem; align-items: flex-start; padding: .55rem 0; }
.review-row .ico { flex: none; width: 24px; color: #6b7280; }
.review-row .k { display: block; font-weight: 800; color: #1f2937; font-size: .95rem; }
.review-row .v { display: block; color: #6b7280; font-weight: 600; word-break: break-word; }
.review-ticks { border-top: 1.5px solid #e6ebf2; margin-top: .6rem; padding-top: .8rem; }
.review-ticks div { display: flex; align-items: center; gap: .7rem; padding: .3rem 0; font-weight: 700; color: #1f2937; }
.review-ticks .ok { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; }
.review-ticks .ok svg { width: 14px; height: 14px; }

/* step 3: verify */
.verify-art { display: flex; justify-content: center; margin: .2rem 0 1rem; }
.verify-art svg { width: 190px; height: auto; }
.verify-head { text-align: center; }
.verify-head .lead { margin-bottom: .2rem; }
.verify-head .to { font-weight: 800; color: var(--accent-deep); margin-bottom: 1.2rem; }
.otp-input { width: 100%; height: 66px; border: 1.5px solid #dbe3ee; border-radius: 14px; font: inherit; font-size: 1.9rem; font-weight: 800; letter-spacing: .9em; text-indent: .9em; text-align: center; color: var(--accent-deep); background: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 4px), #eef2f7 calc(16.666% - 4px) 16.666%); }
.otp-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.verify-resend { text-align: center; margin: 1rem 0 .6rem; font-weight: 600; color: #6b7280; }
.verify-resend button { border: 0; background: none; color: var(--accent-strong); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; }
.verify-change { text-align: center; margin-top: .8rem; }
.verify-change a { color: var(--accent-strong); font-weight: 800; text-decoration: underline; }
.verify-note { display: flex; gap: .8rem; align-items: center; background: var(--accent-tint); border-radius: 14px; padding: .8rem 1rem; margin-top: 1.4rem; font-size: .85rem; font-weight: 600; color: #4b5563; }
.verify-note .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--accent-strong); display: grid; place-items: center; }
.verify-msg { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #166534; border-radius: 12px; padding: .7rem 1rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }

@media (max-width: 560px) {
    .signup-head { flex-direction: column; align-items: flex-start; }
    .signup-card { padding: 1.4rem 1.1rem; }
    .signup-row { grid-template-columns: 1fr; }
    .signup-steps li { font-size: .74rem; }
}
