/*
 * Login & signup — split-screen and guided checkout layouts.
 * Leads Factory Technologies · AI Employee brand.
 */

/* ---------------- Shared brand logo ---------------- */

.theme-auth .brand-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.theme-auth .brand-mark { object-fit: contain; filter: drop-shadow(0 6px 14px rgba(212, 20, 114, 0.3)); }
.theme-auth .brand-words { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.theme-auth .brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.theme-auth .brand-by { font-size: 11.5px; font-weight: 500; }
.theme-auth .brand-logo--dark .brand-name { color: #1e2673; }
.theme-auth .brand-logo--dark .brand-by { color: #64748b; }
.theme-auth .brand-logo--light .brand-name { color: #fff; }
.theme-auth .brand-logo--light .brand-by { color: rgba(255, 255, 255, 0.62); }

/* ================================================================== */
/* LOGIN — split screen                                                */
/* ================================================================== */

.theme-auth .auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #fff;
}

/* Brand panel */
.theme-auth .auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 56px 36px;
  color: #fff;
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(212, 20, 114, 0.55) 0%, rgba(212, 20, 114, 0) 60%),
    linear-gradient(150deg, #0f1442 0%, #1e2673 55%, #3b1a63 100%);
}

.theme-auth .auth-brand-bg { position: absolute; inset: 0; z-index: -1; }
.theme-auth .auth-brand-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
}
.theme-auth .ab-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; animation: auth-float 14s ease-in-out infinite; }
.theme-auth .ab-blob-1 { width: 380px; height: 380px; left: -120px; top: -100px; background: #6d28d9; }
.theme-auth .ab-blob-2 { width: 320px; height: 320px; right: -80px; bottom: 60px; background: #db2777; animation-delay: -6s; }
@keyframes auth-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -24px); }
}

.theme-auth .auth-brand-copy { max-width: 460px; margin-top: auto; }
.theme-auth .auth-brand-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.theme-auth .auth-brand-copy p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 16px; line-height: 1.6; }

.theme-auth .auth-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.theme-auth .auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.88); font-size: 15px; font-weight: 500; }
.theme-auth .auth-points span {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: #f9a8d4; font-size: 13px; font-weight: 800;
}

/* Animated voice orb */
.theme-auth .auth-orb { position: relative; width: 150px; height: 150px; margin: 40px 0 auto; display: grid; place-items: center; }
.theme-auth .auth-orb img { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 0 40px rgba(244, 63, 151, 0.45); }
.theme-auth .orb-ring { position: absolute; inset: 10px; border-radius: 50%; border: 2px solid rgba(244, 114, 182, 0.5); animation: auth-ripple 3s ease-out infinite; }
.theme-auth .orb-ring:nth-child(2) { animation-delay: 1s; }
.theme-auth .orb-ring:nth-child(3) { animation-delay: 2s; }
@keyframes auth-ripple { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
.theme-auth .orb-wave { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: flex; gap: 3px; height: 22px; align-items: center; }
.theme-auth .orb-wave i { width: 3px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #f472b6, #a5b4fc); animation: auth-wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.08s); }
@keyframes auth-wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

.theme-auth .auth-brand-foot { margin: 0; color: rgba(255, 255, 255, 0.45); font-size: 13px; }

/* Form panel */
.theme-auth .auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 32px 40px;
  background: #fff;
}

.theme-auth .auth-topbar {
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.theme-auth .auth-mobile-logo { display: none; }
.theme-auth .auth-back {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.theme-auth .auth-back:hover { color: #d41472; }

.theme-auth .auth-main .login-card {
  width: 100%;
  max-width: 420px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
  animation: auth-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.theme-auth .auth-main .login-card::before { content: none; display: none; }
@keyframes auth-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.theme-auth .auth-main .login-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.theme-auth .auth-main .login-card .subtitle { margin: 8px 0 30px; color: #64748b; font-size: 15px; }

/* Floating-label inputs */
.theme-auth .auth-main .input-group-custom { margin-bottom: 18px; }
.theme-auth .auth-main .input-group-custom input {
  height: 54px;
  padding: 18px 16px 6px;
  border: 1.5px solid #d9dce8;
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.theme-auth .auth-main .input-group-custom input:hover { border-color: #bfc5d8; }
.theme-auth .auth-main .input-group-custom label {
  top: 17px;
  left: 16px;
  padding: 0;
  color: #94a3b8;
  font-size: 15px;
  background: transparent;
  transition: all 0.18s ease;
}
.theme-auth .auth-main .input-group-custom input:focus,
.theme-auth .auth-main .input-group-custom input:valid {
  border-color: #d41472;
  box-shadow: 0 0 0 4px rgba(212, 20, 114, 0.12);
}
.theme-auth .auth-main .input-group-custom input:valid:not(:focus) { box-shadow: none; border-color: #d9dce8; }
.theme-auth .auth-main .input-group-custom input:focus + label,
.theme-auth .auth-main .input-group-custom input:valid + label {
  top: 7px;
  left: 16px;
  padding: 0;
  background: transparent;
  color: #d41472;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.theme-auth .auth-main .input-group-custom input:valid:not(:focus) + label { color: #64748b; }

.theme-auth .auth-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; }
.theme-auth .auth-link {
  color: #d41472;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.theme-auth .auth-link:hover { text-decoration: underline; }

.theme-auth .auth-main .text-danger,
.theme-auth .auth-main .text-success {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.theme-auth .auth-main .text-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c !important; }
.theme-auth .auth-main .text-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857 !important; }

.theme-auth .auth-main .login-card button[type="submit"] {
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f97 0%, #d41472 45%, #1e2673 100%);
  background-size: 140% 140%;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 26px rgba(212, 20, 114, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.3s ease, opacity 0.15s;
}
.theme-auth .auth-main .login-card button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 16px 32px rgba(212, 20, 114, 0.36);
}

.theme-auth .auth-main .bottom-text { margin-top: 22px; color: #64748b; font-size: 14.5px; text-align: center; }
.theme-auth .auth-main .bottom-text span { color: #d41472; font-weight: 700; }

.theme-auth .auth-legal {
  max-width: 420px;
  margin: 36px 0 0;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}
.theme-auth .auth-legal a { color: #64748b; text-decoration: underline; }

/* ================================================================== */
/* SIGNUP — guided checkout                                            */
/* ================================================================== */

.theme-auth .signup-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, transparent 0, transparent 420px, #f5f6fb 420px),
    radial-gradient(60% 90% at 100% 0%, rgba(212, 20, 114, 0.45) 0%, rgba(212, 20, 114, 0) 60%),
    linear-gradient(150deg, #0f1442 0%, #1e2673 60%, #3b1a63 100%);
  background-repeat: no-repeat;
  background-color: #f5f6fb;
}

.theme-auth .signup-header,
.theme-auth .signup-hero,
.theme-auth .signup-body,
.theme-auth .signup-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.theme-auth .signup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.theme-auth .signup-header .brand-logo--dark .brand-name { color: #fff; }
.theme-auth .signup-header .brand-logo--dark .brand-by { color: rgba(255, 255, 255, 0.62); }
.theme-auth .signup-have { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.theme-auth .signup-have span {
  margin-left: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
.theme-auth .signup-have span:hover { background: rgba(255, 255, 255, 0.12); }

.theme-auth .signup-hero { padding-top: 34px; padding-bottom: 36px; text-align: center; color: #fff; }
.theme-auth .signup-kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f9a8d4;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.theme-auth .signup-hero h1 {
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.theme-auth .signup-hero p { max-width: 640px; margin: 14px auto 0; color: rgba(255, 255, 255, 0.75); font-size: 16.5px; }

.theme-auth .signup-steps {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  list-style: none;
}
.theme-auth .signup-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  font-weight: 600;
}
.theme-auth .signup-steps li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}
.theme-auth .signup-steps li.is-done span { background: #22c55e; color: #fff; }
.theme-auth .signup-steps li.is-current { background: #fff; color: #1e2673; }
.theme-auth .signup-steps li.is-current span { background: #d41472; color: #fff; }

.theme-auth .signup-body { display: grid; gap: 22px; padding-bottom: 24px; }

.theme-auth .signup-section {
  padding: 28px;
  border: 1px solid #e6e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 20, 66, 0.1);
}
.theme-auth .signup-section-head { margin-bottom: 22px; text-align: left; }
.theme-auth .signup-section-head h2,
.theme-auth .order-summary h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.theme-auth .signup-section-head p { margin: 6px 0 0 40px; color: #64748b; font-size: 14.5px; }
.theme-auth .step-badge {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f43f97, #d41472);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* Plans */
.theme-auth .plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.theme-auth .plan-card {
  position: relative;
  margin: 0;
  padding: 26px 18px 20px;
  border: 1.5px solid #e6e8f0;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.theme-auth .plan-card:hover { transform: translateY(-3px); border-color: #f3c1d8; box-shadow: 0 14px 30px rgba(30, 38, 115, 0.1); }
.theme-auth .plan-card.selected-plan {
  border-color: transparent;
  background: linear-gradient(#fff8fb, #fff8fb) padding-box, linear-gradient(135deg, #f43f97, #1e2673) border-box;
  border-width: 2px;
  box-shadow: 0 18px 40px rgba(212, 20, 114, 0.18);
}
.theme-auth .plan-card.selected-plan::after {
  content: "✓ Selected";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: #1e2673;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Account details + summary */
.theme-auth .signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 22px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.theme-auth .signup-card {
  max-width: none;
  margin: 0;
  padding: 28px;
  border: 1px solid #e6e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 20, 66, 0.1);
  text-align: left;
  animation: none;
}
.theme-auth .signup-card::before { content: none; display: none; }

.theme-auth .signup-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 18px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.theme-auth .signup-details .signup-field { margin: 0; }
.theme-auth .signup-details .signup-field:first-child { grid-column: 1 / -1; }
.theme-auth .signup-field label { color: #334155; font-size: 13.5px; font-weight: 600; }
.theme-auth .signup-field label span { color: #d41472; }
.theme-auth .signup-field input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #d9dce8;
  border-radius: 12px;
  font-size: 15px;
}
.theme-auth .signup-field input:focus { border-color: #d41472; box-shadow: 0 0 0 4px rgba(212, 20, 114, 0.12); }

.theme-auth .order-summary {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 26px;
  border: 1px solid #e6e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 20, 66, 0.1);
}

.theme-auth .os-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 20, 114, 0.08), rgba(30, 38, 115, 0.08));
}
.theme-auth .os-label { display: block; color: #64748b; font-size: 12px; font-weight: 600; }
.theme-auth .os-plan strong { display: block; margin-top: 2px; color: #1e2673; font-size: 18px; font-weight: 800; }
.theme-auth .os-off { padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700; }

.theme-auth .os-lines { margin: 16px 0 0; padding: 0; list-style: none; }
.theme-auth .os-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed #e6e8f0;
  color: #475569;
  font-size: 14px;
}
.theme-auth .os-lines li span:last-child { color: #0f172a; font-weight: 600; text-align: right; }
.theme-auth .os-lines s { color: #94a3b8; font-weight: 500; margin-right: 4px; }
.theme-auth .os-total { border-bottom: none !important; padding-top: 14px !important; }
.theme-auth .os-total span:first-child { color: #0f172a; font-weight: 700; }
.theme-auth .os-total span:last-child { color: #d41472 !important; font-size: 22px; font-weight: 800 !important; }

.theme-auth .order-summary .terms-section { margin: 18px 0 0; text-align: left; }
.theme-auth .order-summary .terms-checkbox { font-size: 14px; align-items: flex-start; }
.theme-auth .order-summary .terms-warning { margin: 8px 0 0; font-size: 12.5px; }

.theme-auth #signup-submit {
  width: 100%;
  height: 52px;
  margin-top: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f97 0%, #d41472 45%, #1e2673 100%);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(212, 20, 114, 0.3);
}
.theme-auth #signup-submit:hover:not(:disabled) { transform: translateY(-1px); }

.theme-auth .os-secure { margin: 14px 0 0; color: #64748b; font-size: 12.5px; line-height: 1.5; text-align: center; }

.theme-auth .signup-footer { padding-top: 12px; padding-bottom: 32px; color: #94a3b8; font-size: 13px; text-align: center; }

/* ================================================================== */
/* Responsive                                                          */
/* ================================================================== */

@media (max-width: 1099px) {
  .theme-auth .auth-brand { padding: 36px 40px 30px; }
  .theme-auth .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .theme-auth .signup-grid { grid-template-columns: 1fr; }
  .theme-auth .order-summary { position: static; }
}

@media (max-width: 899px) {
  .theme-auth .auth-shell { grid-template-columns: 1fr; }
  .theme-auth .auth-brand { display: none; }
  .theme-auth .auth-main {
    justify-content: flex-start;
    min-height: 100vh;
    padding: 108px 22px 32px;
    background:
      radial-gradient(80% 40% at 50% 0%, rgba(212, 20, 114, 0.1) 0%, rgba(212, 20, 114, 0) 70%),
      #fff;
  }
  .theme-auth .auth-topbar { top: 20px; left: 20px; right: 20px; justify-content: space-between; }
  .theme-auth .auth-mobile-logo { display: inline-flex; text-decoration: none; }
  .theme-auth .auth-back { font-size: 13px; }
}

@media (max-width: 767px) {
  .theme-auth .signup-header { height: 68px; padding-left: 16px; padding-right: 16px; }
  .theme-auth .signup-have { font-size: 0; }
  .theme-auth .signup-have span { font-size: 13.5px; margin: 0; }
  .theme-auth .signup-hero { padding: 20px 16px 28px; }
  .theme-auth .signup-hero p { font-size: 15px; }
  .theme-auth .signup-steps { border-radius: 16px; }
  .theme-auth .signup-body { padding-left: 12px; padding-right: 12px; gap: 16px; }
  .theme-auth .signup-section,
  .theme-auth .signup-card,
  .theme-auth .order-summary { padding: 20px 16px; border-radius: 18px; }
  .theme-auth .signup-section-head p { margin-left: 0; }
  .theme-auth .plans-grid { grid-template-columns: 1fr; }
  .theme-auth .signup-details { grid-template-columns: 1fr; }

  .theme-auth .auth-main .login-card h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-auth *, .theme-auth *::before, .theme-auth *::after { animation: none !important; transition: none !important; }
}
