/* Influencer signup — standalone Step 1 (premium dark, /signup/influencer) */

html.infl-signup-standalone-active #root {
  display: none !important;
}

html.infl-signup-standalone-active,
html.infl-signup-standalone-active body {
  background: #090d16 !important;
  min-height: 100%;
}

.infl-signup-standalone {
  min-height: 100vh;
  width: 100%;
  background: #090d16;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.85rem 1.25rem;
  font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.infl-signup-standalone-shell {
  width: 100%;
  max-width: 34rem;
}

/* —— Step label + gradient line —— */
.infl-signup-standalone-step-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  margin-bottom: 0.85rem;
}

.infl-signup-standalone-step-name {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ee3e96;
}

.infl-signup-standalone-step-line {
  display: block;
  width: 4.75rem;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ee3e96 0%, #f97316 100%);
}

/* —— Form card —— */
.infl-signup-standalone-card {
  width: 100%;
  background: #0d1117;
  border: 1px solid #0f172a;
  border-radius: 0.875rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
}

@media (min-width: 768px) {
  .infl-signup-standalone {
    padding: 1.15rem 1.25rem;
  }
  .infl-signup-standalone-card {
    padding: 1.35rem 1.5rem;
    border-radius: 1rem;
  }
}

.infl-signup-standalone-head h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.infl-signup-standalone-head p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.infl-signup-standalone-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.infl-signup-standalone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 540px) {
  .infl-signup-standalone-grid {
    grid-template-columns: 1fr;
  }
}

.infl-signup-standalone-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.infl-signup-standalone-field > span,
.infl-signup-standalone-field > label > span:first-child {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.infl-signup-standalone-field input[type="text"],
.infl-signup-standalone-field input[type="email"],
.infl-signup-standalone-field input[type="tel"],
.infl-signup-standalone-field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #1e293b;
  border-radius: 0.65rem;
  background: #161b22;
  color: #fff;
  padding: 0.58rem 0.85rem;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.infl-signup-standalone-field input::placeholder {
  color: #64748b;
}

.infl-signup-standalone-field input:focus {
  border-color: #ee3e96;
  box-shadow: 0 0 0 1px #ee3e96;
}

.infl-signup-standalone-handle-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #1e293b;
  border-radius: 0.65rem;
  background: #161b22;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.infl-signup-standalone-handle-wrap:focus-within {
  border-color: #ee3e96;
  box-shadow: 0 0 0 1px #ee3e96;
}

.infl-signup-standalone-handle-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(2, 6, 23, 0.45);
  border-right: 1px solid #1e293b;
  white-space: nowrap;
  user-select: none;
}

.infl-signup-standalone-handle-wrap input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
  padding: 0.58rem 0.65rem 0.58rem 0.5rem !important;
}

.infl-signup-standalone-handle-wrap input:focus {
  box-shadow: none !important;
}

#username-status-feedback,
#email-status-feedback {
  min-height: 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  margin: 0.05rem 0 0;
}

#username-status-feedback.is-checking {
  color: #94a3b8;
}

#username-status-feedback.is-ok,
#email-status-feedback.is-ok {
  color: #10b981;
  font-weight: 600;
}

#username-status-feedback.is-err,
#email-status-feedback.is-err {
  color: #f43f5e;
  font-weight: 600;
}

.infl-signup-standalone-password {
  position: relative;
}

.infl-signup-standalone-password input {
  padding-right: 2.85rem !important;
}

.infl-signup-standalone-password-toggle {
  position: absolute;
  right: 0.55rem;
  bottom: 0.5rem;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.infl-signup-standalone-password-toggle:hover {
  color: #cbd5e1;
}

.infl-signup-standalone-password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.infl-signup-standalone-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
}

.infl-signup-standalone-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.infl-signup-standalone-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.infl-signup-standalone-check-box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  border-radius: 0.3rem;
  border: 1px solid #334155;
  background: #161b22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.infl-signup-standalone-check input:focus-visible + .infl-signup-standalone-check-box {
  box-shadow: 0 0 0 2px rgba(238, 62, 150, 0.35);
}

.infl-signup-standalone-check input:checked + .infl-signup-standalone-check-box {
  border-color: #ee3e96;
  background: rgba(238, 62, 150, 0.15);
}

.infl-signup-standalone-check input:checked + .infl-signup-standalone-check-box::after {
  content: "✓";
  font-size: 0.65rem;
  font-weight: 800;
  color: #ee3e96;
}

.infl-signup-standalone-check-text {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.infl-signup-standalone-check-text a {
  color: #f9a8d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.infl-signup-standalone-check-text a:hover {
  color: #ee3e96;
}

.infl-signup-standalone-note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #64748b;
}

.infl-signup-standalone-note svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.infl-signup-standalone-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fda4af;
  font-size: 0.78rem;
}

.infl-signup-standalone-actions {
  display: flex;
  padding-top: 0.25rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

#btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0.65rem;
  background: #ee3e96;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.72rem 1rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(238, 62, 150, 0.32);
  transition: background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

#btn-submit:hover:not(:disabled) {
  background: #d63384;
}

#btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Phone OTP — dark standalone theme */
.infl-signup-standalone .infl-phone-otp-wrap {
  margin-top: 0.2rem;
}

.infl-signup-standalone .infl-phone-otp-prefix {
  background: rgba(2, 6, 23, 0.55);
  border-color: #1e293b;
  color: #cbd5e1;
}

.infl-signup-standalone .infl-phone-otp-row input[type="tel"].infl-phone-local {
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  background: #161b22;
  color: #f8fafc;
}

.infl-signup-standalone .infl-phone-otp-send {
  border-color: rgba(238, 62, 150, 0.45);
  background: rgba(238, 62, 150, 0.12);
  color: #f9a8d4;
}

.infl-signup-standalone .infl-phone-otp-digit {
  border-color: #1e293b;
  background: #161b22;
  color: #f8fafc;
}

.infl-signup-standalone .infl-phone-otp-code-label,
.infl-signup-standalone .infl-phone-otp-resend {
  color: #94a3b8;
}

.infl-signup-standalone .infl-phone-otp-verified-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.infl-signup-standalone .infl-phone-otp-status.failed {
  color: #fda4af;
}
