/*
 * Fixly login page: split layout, brand panel on the left, form on the right.
 * Colours follow the Fixly brand (maroon #8C0F32, gold #CBA346).
 */
.fxl {
  --fxl-maroon: #8C0F32;
  --fxl-maroon-dark: #5A0920;
  --fxl-gold: #CBA346;
  --fxl-ink: #2A0E18;
  --fxl-muted: #7A6A70;
  --fxl-line: #EBDDE1;
  --fxl-soft: #FBF6F7;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fxl-ink);
}

/* ---------- Brand side ---------- */
.fxl-aside {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, #A3163F 0%, transparent 60%),
    linear-gradient(150deg, #8C0F32 0%, #6E0C28 45%, #3E0716 100%);
  color: #fff;
  isolation: isolate;
}
.fxl-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  z-index: -1;
  animation: fxl-drift 16s ease-in-out infinite alternate;
}
.fxl-glow--a { width: 420px; height: 420px; right: -120px; top: -80px; background: rgba(203, 163, 70, .55); }
.fxl-glow--b { width: 360px; height: 360px; left: -140px; bottom: -120px; background: rgba(255, 92, 140, .35); animation-delay: -6s; }
.fxl-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
}
.fxl-aside__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px clamp(32px, 5vw, 72px);
}
.fxl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none !important;
}
.fxl-brand img {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.fxl-brand span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.fxl-pitch { margin: auto 0; padding: 48px 0 32px; max-width: 520px; }
.fxl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.fxl-eyebrow i { font-size: 7px; color: #7CF0A8; animation: fxl-pulse 1.8s ease-in-out infinite; }
.fxl-pitch h2 {
  margin: 20px 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
}
.fxl-pitch h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #F3D98B, var(--fxl-gold));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.fxl-pitch p { margin: 0 0 28px; font-size: 1.02rem; line-height: 1.6; color: rgba(255, 240, 244, .82); }
.fxl-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fxl-features li { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .92); }
.fxl-features span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #F3D98B;
  font-size: .85rem;
}

.fxl-cards { position: relative; height: 150px; max-width: 460px; }
.fxl-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--fxl-ink);
  box-shadow: 0 20px 44px rgba(20, 3, 9, .35);
  animation: fxl-float 6s ease-in-out infinite;
}
.fxl-card strong { display: block; font-size: .86rem; font-weight: 700; }
.fxl-card small { display: block; font-size: .75rem; color: var(--fxl-muted); margin-top: 2px; }
.fxl-card--one { left: 0; top: 0; width: min(380px, 100%); }
.fxl-card--two { right: 0; top: 78px; width: min(290px, 80%); animation-delay: -3s; }
.fxl-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(140, 15, 50, .1);
  color: var(--fxl-maroon);
}
.fxl-card__icon--gold { background: rgba(203, 163, 70, .18); color: #9A7420; }
.fxl-card__pill {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fxl-maroon);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.fxl-card__grow { flex: 1; }
.fxl-card__bar { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: #F1E6E9; overflow: hidden; }
.fxl-card__bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fxl-maroon), var(--fxl-gold));
  animation: fxl-progress 3.2s ease-in-out infinite;
}
.fxl-aside__foot { margin: 28px 0 0; font-size: .8rem; color: rgba(255, 240, 244, .6); }

/* ---------- Form side ---------- */
.fxl-main {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 64px) 40px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(203, 163, 70, .08), transparent 60%),
    #fff;
}
.fxl-top { display: flex; align-items: center; justify-content: space-between; }
.fxl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--fxl-line);
  color: var(--fxl-ink) !important;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color .2s, background .2s, transform .2s;
}
.fxl-back i { font-size: .75rem; transition: transform .2s; }
.fxl-back:hover { border-color: var(--fxl-maroon); background: var(--fxl-soft); }
.fxl-back:hover i { transform: translateX(-3px); }
.fxl-brand--mobile { display: none; }

.fxl-panel {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 40px 0 8px;
  animation: fxl-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
.fxl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(140, 15, 50, .07);
  color: var(--fxl-maroon);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.fxl-title {
  margin: 16px 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--fxl-ink);
}
.fxl-sub { margin: 0 0 28px; color: var(--fxl-muted); font-size: .98rem; }
.fxl-alert, .fxl-errors { border-radius: 14px !important; font-size: .9rem; }

.fxl-field { margin-bottom: 18px; }
.fxl-field label {
  display: block;
  margin-bottom: 7px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--fxl-ink);
}
.fxl-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--fxl-line);
  border-radius: 14px;
  background: var(--fxl-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fxl-input > i {
  position: absolute;
  left: 16px;
  color: #B29AA2;
  font-size: .9rem;
  pointer-events: none;
  transition: color .2s;
}
.fxl-input input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px 0 44px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fxl-ink);
  font-size: .98rem;
  font-weight: 500;
}
.fxl-input input::placeholder { color: #B9A8AE; font-weight: 400; }
.fxl-input:hover { border-color: #DCC2CA; }
.fxl-input:focus-within {
  border-color: var(--fxl-maroon);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(140, 15, 50, .1);
}
.fxl-input:focus-within > i { color: var(--fxl-maroon); }
.was-validated .fxl-input:has(input:invalid) { border-color: #D64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.fxl-eye {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9C858D;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.fxl-eye:hover, .fxl-eye:focus-visible { background: rgba(140, 15, 50, .08); color: var(--fxl-maroon); outline: none; }
.fxl-caps { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: .8rem; font-weight: 600; color: #B7791F; }

.fxl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; flex-wrap: wrap; }
.fxl-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: .9rem; font-weight: 500; color: var(--fxl-ink); cursor: pointer; user-select: none; }
.fxl-check input { position: absolute; opacity: 0; pointer-events: none; }
.fxl-check__box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #D5BDC5;
  background: #fff;
  color: #fff;
  font-size: .62rem;
  transition: background .2s, border-color .2s, transform .15s;
}
.fxl-check__box i { opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s; }
.fxl-check input:checked + .fxl-check__box { background: var(--fxl-maroon); border-color: var(--fxl-maroon); }
.fxl-check input:checked + .fxl-check__box i { opacity: 1; transform: scale(1); }
.fxl-check input:focus-visible + .fxl-check__box { box-shadow: 0 0 0 4px rgba(140, 15, 50, .15); }
.fxl-link { color: var(--fxl-maroon) !important; font-size: .9rem; font-weight: 700; text-decoration: none !important; }
.fxl-link:hover { text-decoration: underline !important; }

.fxl-demos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -8px 0 20px; font-size: .8rem; color: var(--fxl-muted); }
.fxl-demos button {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--fxl-line);
  background: #fff;
  color: var(--fxl-maroon);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.fxl-demos button:hover { background: var(--fxl-soft); border-color: var(--fxl-maroon); }

.fxl-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #A3163F 0%, var(--fxl-maroon) 45%, var(--fxl-maroon-dark) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(140, 15, 50, .28);
  transition: transform .2s, box-shadow .2s;
}
.fxl-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.fxl-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(140, 15, 50, .34); }
.fxl-submit:hover::after { transform: translateX(100%); }
.fxl-submit:active { transform: translateY(0); }
.fxl-submit:focus-visible { outline: 3px solid rgba(203, 163, 70, .7); outline-offset: 3px; }
.fxl-submit__arrow { font-size: .85rem; transition: transform .2s; }
.fxl-submit:hover .fxl-submit__arrow { transform: translateX(4px); }
.fxl-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: fxl-spin .7s linear infinite;
}
.fxl-submit.is-loading { pointer-events: none; }
.fxl-submit.is-loading .fxl-submit__arrow { display: none; }
.fxl-submit.is-loading .fxl-submit__spinner { display: block; }

.fxl-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 16px; color: var(--fxl-muted); font-size: .82rem; font-weight: 600; }
.fxl-divider::before, .fxl-divider::after { content: ""; flex: 1; height: 1px; background: var(--fxl-line); }
.fxl-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px dashed #E2CDD4;
  color: var(--fxl-ink) !important;
  font-size: .9rem;
  text-decoration: none !important;
  transition: border-color .2s, background .2s;
}
.fxl-secondary > i:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(203, 163, 70, .16);
  color: #9A7420;
}
.fxl-secondary span { flex: 1; color: var(--fxl-muted); }
.fxl-secondary strong { color: var(--fxl-maroon); }
.fxl-secondary > i:last-child { color: #B9A8AE; font-size: .8rem; transition: transform .2s, color .2s; }
.fxl-secondary:hover { border-color: var(--fxl-maroon); border-style: solid; background: var(--fxl-soft); }
.fxl-secondary:hover > i:last-child { transform: translateX(3px); color: var(--fxl-maroon); }

/* ---------- Motion ---------- */
@keyframes fxl-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fxl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fxl-drift { to { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes fxl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fxl-progress { 0% { width: 18%; } 60% { width: 82%; } 100% { width: 18%; } }
@keyframes fxl-spin { to { transform: rotate(360deg); } }
.fxl-pitch > *, .fxl-cards { animation: fxl-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.fxl-pitch h2 { animation-delay: .08s; }
.fxl-pitch p { animation-delay: .16s; }
.fxl-features { animation-delay: .24s; }
.fxl-cards { animation-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
  .fxl *, .fxl *::before, .fxl *::after { animation: none !important; transition: none !important; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1199.98px) {
  .fxl-cards { display: none; }
}
@media (max-width: 991.98px) {
  .fxl { grid-template-columns: 1fr; }
  .fxl-aside { display: none; }
  .fxl-main {
    min-height: 100vh;
    min-height: 100dvh;
    background:
      radial-gradient(500px 260px at 100% 0%, rgba(140, 15, 50, .1), transparent 65%),
      radial-gradient(400px 240px at 0% 100%, rgba(203, 163, 70, .12), transparent 65%),
      #fff;
  }
  .fxl-brand--mobile { display: inline-flex; }
  .fxl-brand--mobile img { width: 40px; height: 40px; box-shadow: 0 6px 16px rgba(42, 14, 24, .12); }
  .fxl-panel { padding-top: 32px; }
}
@media (max-width: 575.98px) {
  .fxl-main { padding: 16px 16px 28px; }
  .fxl-back { padding: 7px 12px 7px 10px; font-size: .8rem; }
  .fxl-panel { margin-top: 12px; }
  .fxl-row { margin-bottom: 20px; }
}
.fxl-field .help-block:not(:empty) { display: block; margin-top: 6px; font-size: .8rem; font-weight: 600; }
