/* ==========================================================================
   Bulkiva — sign-in, registration and password reset
   The split screen follows Sendriva's: the brand story on a deep blue-to-
   violet field on the left, one quiet card on the right.
   ========================================================================== */

.signin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  background: var(--canvas);
}

/* ---- Brand side --------------------------------------------------------- */
.signin__story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 6vw, 72px);
  color: #dfe6ff;
  background:
    radial-gradient(60% 55% at 78% 14%, rgba(140, 82, 255, .55), transparent 70%),
    radial-gradient(70% 60% at 8% 96%, rgba(0, 87, 255, .55), transparent 70%),
    linear-gradient(150deg, #0a2bbf 0%, #1a1f9e 38%, #3a1fb8 72%, #4a22c8 100%);
}
.signin__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .025), 0 0 0 82px rgba(255, 255, 255, .02);
}
.signin__ring--one { width: min(68vw, 780px); aspect-ratio: 1; top: -39%; right: -30%; }
.signin__ring--two { width: min(58vw, 680px); aspect-ratio: 1; bottom: -50%; left: -24%; }
.signin__orb {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #d7cbff; box-shadow: 0 0 22px 5px rgba(199, 186, 255, .55);
}
.signin__orb--one { top: 24%; left: 18%; }
.signin__orb--two { right: 16%; bottom: 21%; width: 6px; height: 6px; background: #a7c7ff; box-shadow: 0 0 20px 4px rgba(87, 155, 255, .6); }

.signin__copy { position: relative; z-index: 1; margin-top: auto; max-width: 520px; }
.signin__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.signin__eyebrow::before { content: ""; width: 26px; height: 1px; background: rgba(255, 255, 255, .7); }
.signin__headline {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.045em;
  color: #fff;
}
.signin__headline em { font-style: normal; color: #c9b8ff; }
.signin__lede { margin: 22px 0 0; max-width: 420px; font-size: .95rem; line-height: 1.7; color: #d4dcf7; }

/* Campaign preview illustration */
.signin__art { position: relative; z-index: 1; margin: 48px 0 auto; height: 250px; max-width: 420px; }
.preview-card {
  position: absolute; left: 4%; top: 0; width: 72%;
  padding: 18px 18px 22px; border-radius: 14px;
  background: #f7f8fd; color: #1b2142;
  box-shadow: 0 30px 60px rgba(8, 10, 60, .35);
  transform: rotate(-4deg);
}
.preview-card__bar { display: flex; align-items: center; gap: 5px; margin-bottom: 18px; }
.preview-card__bar i { width: 6px; height: 6px; border-radius: 50%; background: #c8cde0; }
.preview-card__bar span { margin-left: auto; font-size: .55rem; font-weight: 700; letter-spacing: .14em; color: #8d93ad; }
.preview-card__brand { font-weight: 800; letter-spacing: -.04em; font-size: 1rem; color: #11173a; }
.preview-card__brand b { color: #5628ee; }
.preview-card__bubble {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px 14px 14px 4px;
  background: linear-gradient(100deg, #0057ff, #7a3cf7); color: #fff;
  font-size: .72rem; line-height: 1.45; font-weight: 500;
}
.preview-card__line { height: 6px; border-radius: 4px; background: #e2e6f2; margin-top: 10px; }
.preview-card__btn { width: 74px; height: 18px; border-radius: 6px; background: #0057ff; margin-top: 16px; }
.preview-chip {
  position: absolute; right: 2%; bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: #fff; color: #1b2142;
  box-shadow: 0 18px 40px rgba(8, 10, 60, .3);
  font-size: .72rem; line-height: 1.3;
}
.preview-chip i {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #0057ff; color: #fff; font-size: .85rem;
}
.preview-chip strong { display: block; font-weight: 700; }
.preview-chip span { color: #8d93ad; font-size: .62rem; }
.preview-spark { position: absolute; left: 0; bottom: 30px; color: rgba(255, 255, 255, .7); font-size: 1rem; }

.signin__foot {
  position: relative; z-index: 1; margin-top: 32px;
  display: flex; align-items: center; gap: 8px; font-size: .75rem; color: #cfd8fb;
}

/* ---- Form side ---------------------------------------------------------- */
.signin__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 22px;
  background:
    radial-gradient(70% 50% at 100% 100%, rgba(140, 82, 255, .06), transparent 70%),
    var(--canvas);
}
.signin__theme {
  position: absolute; top: 22px; right: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-strong);
  font-size: .75rem; font-weight: 600; box-shadow: var(--shadow-xs); cursor: pointer;
}
.signin__theme:hover { border-color: var(--border-strong); }

.signin-card {
  width: min(100%, 420px);
  margin-block: auto;
  padding: 34px 30px 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(13, 19, 38, .07), 0 2px 6px rgba(13, 19, 38, .04);
}
.signin-card--wide { width: min(100%, 520px); }

.brandmark { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.brandmark img { height: 44px; width: auto; }
.brandmark__word {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.045em;
  background: linear-gradient(90deg, #0057ff 0%, #5628ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brandmark__by { align-self: flex-end; margin-bottom: 6px; font-size: .62rem; color: var(--text-faint); white-space: nowrap; }
.brandmark__by b { color: var(--primary-text); font-weight: 700; }
:root[data-theme="dark"] .brandmark__word { background: linear-gradient(90deg, #6f9dff, #b896ff); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brandmark__word { background: linear-gradient(90deg, #6f9dff, #b896ff); -webkit-background-clip: text; background-clip: text; }
}

.stepper { display: flex; align-items: center; gap: 12px; margin: 26px 0 26px; font-size: .75rem; font-weight: 600; color: var(--text-faint); }
.stepper__item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.stepper__num {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .68rem; border: 1px solid var(--border); color: var(--text-faint); background: var(--surface);
}
.stepper__item.is-active { color: var(--text-strong); }
.stepper__item.is-active .stepper__num { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper__item.is-done .stepper__num { background: var(--success-soft); border-color: transparent; color: var(--success); }
.stepper__rule { flex: 1; height: 1px; background: var(--border); }

.signin-card__eyebrow { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--text-faint); }
.signin-card__title { margin: 8px 0 6px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; color: var(--text-strong); }
.signin-card__lede { margin: 0 0 24px; font-size: .85rem; color: var(--text-muted); }

.signin-form { display: grid; gap: 16px; }
.signin-label { display: grid; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--text); }
.signin-input {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text-faint); transition: border-color var(--fast), box-shadow var(--fast);
}
.signin-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.signin-input input {
  flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent;
  color: var(--text-strong); font: inherit; font-size: .875rem;
}
.signin-input input::placeholder { color: var(--text-faint); }
.signin-input.is-invalid, .signin-input:has(.is-invalid) { border-color: var(--danger); }
.signin-input__toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-muted); font-size: .72rem; font-weight: 700; cursor: pointer;
}
.signin-input__toggle:hover { color: var(--primary-text); }
.signin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.code-input input { letter-spacing: .5em; font-size: 1.25rem; font-weight: 700; text-align: center; font-family: var(--font-mono); }

.signin-submit {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; margin-top: 4px; border: 0; border-radius: 10px;
  background: var(--blue-500); color: #fff; font-size: .9rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 87, 255, .22);
  transition: background var(--fast), transform var(--fast);
  cursor: pointer;
}
.signin-submit:hover { background: var(--blue-600); }
.signin-submit:active { transform: translateY(1px); }
.signin-submit:disabled { opacity: .7; cursor: progress; }
.signin-submit .spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.signin-link { font-size: .78rem; color: var(--text-muted); background: none; border: 0; padding: 0; cursor: pointer; }
.signin-link:hover { color: var(--primary-text); }
.signin-switch { margin: 22px 0 0; text-align: center; font-size: .8rem; color: var(--text-muted); }
.signin-switch a { font-weight: 700; color: var(--primary-text); }
.signin-security {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-subtle);
  font-size: .72rem; color: var(--text-faint);
}
.signin-security i { color: var(--violet-500); }

.signin-alert {
  display: flex; gap: 10px; padding: 11px 13px; border-radius: 10px; font-size: .8rem; line-height: 1.5;
  border: 1px solid; margin-bottom: 4px;
}
.signin-alert--danger { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.signin-alert--success { color: var(--success); background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.signin-alert--info { color: var(--primary-text); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 22%, transparent); }

.field__error { margin-top: 2px; font-size: .74rem; font-weight: 500; color: var(--danger); }

.signin__credit { margin-top: 28px; font-size: .72rem; color: var(--text-faint); text-align: center; }
.signin__credit a { color: var(--primary-text); font-weight: 600; }

@media (max-width: 960px) {
  .signin { grid-template-columns: 1fr; }
  .signin__story { display: none; }
  .signin__panel { min-height: 100vh; padding-top: 80px; }
}
@media (max-width: 420px) {
  .signin-card { padding: 26px 18px 20px; border-radius: 14px; }
  .signin-row { grid-template-columns: 1fr; }
  .brandmark img { height: 36px; }
  .brandmark__word { font-size: 1.25rem; }
}
