/* Signup flow only. Loaded by layouts/signup.blade.php, never by the login. */

:root {
  --sx-primary: #666cff;
  --sx-primary-dark: #4a50e0;
  --sx-accent: #dd2853;
  --sx-ink: #0f172a;
  --sx-muted: #64748b;
  --sx-line: rgba(15, 23, 42, 0.08);
  --sx-panel: #ffffff;
  --sx-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --sx-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.sx-body {
  background: #fff;
}

.sx-brand {
  position: absolute;
  top: 1.75rem;
  left: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--sx-ink);
  text-decoration: none;
}

.sx-brand:hover {
  color: var(--sx-primary-dark);
}

.sx-brand img {
  border-radius: 9px;
}

/* Stage: gradient mesh, the product hinted at, and the numbers that back it. */
.sx-stage {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(880px 620px at 14% 6%, rgba(102, 108, 255, 0.22), transparent 62%),
    radial-gradient(720px 520px at 90% 14%, rgba(221, 40, 83, 0.13), transparent 58%),
    radial-gradient(760px 700px at 68% 100%, rgba(102, 108, 255, 0.14), transparent 62%),
    linear-gradient(160deg, #f8f8ff 0%, #fdf7fa 52%, #f6f7ff 100%);
}

.sx-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 25%, transparent 78%);
  pointer-events: none;
}

.sx-stage-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

.sx-headline {
  font-size: clamp(2rem, 2.6vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--sx-ink);
  margin-bottom: 0.85rem;
}

.sx-subhead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--sx-muted);
  max-width: 30rem;
  margin-bottom: 2.5rem;
}

/* A hint of the real product beats a stock illustration. */
.sx-mock {
  position: relative;
  height: 372px;
  transform: scale(0.97);
  transform-origin: left center;
  margin-bottom: 2.75rem;
}

.sx-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: var(--sx-shadow-lg);
  animation: sx-float 7s ease-in-out infinite;
}

.sx-card-agenda {
  top: 0;
  left: 0;
  width: 322px;
  padding: 1.15rem 1.25rem;
}

.sx-card-invoice {
  top: 214px;
  left: 0;
  width: 210px;
  padding: 1.05rem 1.15rem;
  animation-delay: -2.3s;
}

.sx-card-payment {
  top: 238px;
  left: 246px;
  width: 222px;
  padding: 1.05rem 1.15rem;
  animation-delay: -5.8s;
}

.sx-card-patient {
  top: 22px;
  left: 340px;
  width: 238px;
  padding: 0.9rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation-delay: -4.6s;
}

@keyframes sx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-card { animation: none; }
}

.sx-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sx-muted);
  margin-bottom: 0.8rem;
}

.sx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sx-primary);
  box-shadow: 0 0 0 4px rgba(102, 108, 255, 0.18);
}

.sx-slot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--sx-line);
  font-size: 0.85rem;
}

.sx-slot:first-of-type { border-top: 0; }

.sx-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--sx-ink);
  min-width: 42px;
}

.sx-name {
  flex: 1;
  color: var(--sx-ink);
}

.sx-slot-muted .sx-time,
.sx-slot-muted .sx-name {
  color: #a5b0c0;
}

.sx-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(221, 40, 83, 0.10);
  color: #b91c46;
  white-space: nowrap;
}

.sx-badge-ok {
  background: rgba(102, 108, 255, 0.14);
  color: var(--sx-primary-dark);
}

.sx-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sx-muted);
  margin-bottom: 0.2rem;
}

.sx-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sx-ink);
  line-height: 1.15;
}

.sx-card-value-sm { font-size: 0.95rem; }

.sx-card-foot {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: var(--sx-primary-dark);
  font-weight: 600;
}

.sx-card-patient .sx-card-foot {
  color: var(--sx-muted);
  font-weight: 500;
}

.sx-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sx-primary), var(--sx-accent));
  flex-shrink: 0;
}

.sx-proof {
  display: flex;
  gap: 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--sx-line);
}

.sx-proof-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sx-ink);
  line-height: 1.1;
}

.sx-proof-item span {
  font-size: 0.82rem;
  color: var(--sx-muted);
}

/* Form side */
.sx-panel {
  min-height: 100vh;
  background: var(--sx-panel);
  box-shadow: -1px 0 0 var(--sx-line);
}

.sx-panel .card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.sx-panel .card-body {
  padding: 0 !important;
}

.sx-proof-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(102, 108, 255, 0.09);
  color: var(--sx-primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.sx-proof-mobile i { font-size: 1.05rem; }

/* The wrapper is a flex row: without this the inner shrinks to its content. */
.authentication-wrapper.authentication-cover .authentication-inner {
  flex: 1 1 100%;
  width: 100%;
}

@media (max-width: 991.98px) {
  /* Stacked, so the brand stops competing for width with the form. */
  .authentication-wrapper.authentication-cover {
    flex-direction: column;
    min-height: 100vh;
  }

  .sx-brand {
    position: static;
    margin: 1.5rem 0 0 1.5rem;
    align-self: flex-start;
  }

  /* Centring the panel pushes the form below the fold on a phone. The extra
     selector is needed because the template injects core.css after this file,
     so a single-class rule loses the tie against Bootstrap's utilities. */
  .authentication-cover .sx-panel {
    min-height: auto;
    box-shadow: none;
    align-items: flex-start !important;
    padding-top: 1.25rem !important;
  }
}

/* Form typography inside the panel */
.sx-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sx-ink);
  margin-bottom: 0.35rem;
}

.sx-form-sub {
  font-size: 0.92rem;
  color: var(--sx-muted);
  margin-bottom: 1.75rem;
}

/* Trial screen */
.sx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(102, 108, 255, 0.1);
  color: var(--sx-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.sx-pill i { font-size: 1rem; }

.sx-gift {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(221, 40, 83, 0.18);
  background: rgba(221, 40, 83, 0.05);
}

.sx-gift-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #b91c46;
  margin-bottom: 0.35rem;
}

.sx-gift-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: var(--sx-muted);
}

.sx-gift-list li + li { margin-top: 0.2rem; }

.sx-includes {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.sx-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sx-line);
  font-size: 0.92rem;
  color: var(--sx-ink);
}

.sx-includes li:last-child { border-bottom: 0; }

.sx-includes i {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--sx-primary);
  flex-shrink: 0;
}

.sx-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--sx-muted);
  text-align: center;
}

/* Confirmation */
.sx-success {
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(102, 108, 255, 0.12);
  color: var(--sx-primary-dark);
  font-size: 1.8rem;
}

/* The one branch of the door: how they will use Sanidalia */
.sx-choice-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sx-ink);
}

.sx-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.sx-choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sx-choice-option > span {
  display: block;
  height: 100%;
  padding: 0.85rem 0.8rem;
  border: 1.5px solid var(--sx-line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sx-choice-option > span i {
  display: block;
  font-size: 1.35rem;
  color: var(--sx-muted);
  margin-bottom: 0.25rem;
}

.sx-choice-option > span strong {
  display: block;
  font-size: 0.88rem;
  color: var(--sx-ink);
}

.sx-choice-option > span small {
  display: block;
  font-size: 0.76rem;
  color: var(--sx-muted);
}

.sx-choice-option > span:hover {
  border-color: rgba(102, 108, 255, 0.45);
}

.sx-choice-option input:checked + span {
  border-color: var(--sx-primary);
  background: rgba(102, 108, 255, 0.06);
}

.sx-choice-option input:checked + span i {
  color: var(--sx-primary);
}

.sx-choice-option input:focus-visible + span {
  outline: 2px solid var(--sx-primary);
  outline-offset: 2px;
}

.sx-markets {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sx-muted);
}

/* The billed amount alternates between the markets the product serves. */
.sx-money {
  position: relative;
  height: 1.75rem;
}

.sx-money-value {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  /* Leaves at once; the incoming one waits, so the two amounts never overlap. */
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.sx-money-value.is-on {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {
  .sx-money-value { transition: none; }
}

/* Who Google says you are, shown before the two things still asked. */
.google-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sx-line);
  border-radius: 12px;
}

.google-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.google-badge .badge-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.google-badge .badge-name {
  font-weight: 600;
  color: var(--sx-ink);
}

.google-badge .badge-email {
  font-size: 0.82rem;
  color: var(--sx-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
