/* FullVendor Company login — dark split mockup */
:root {
  --cl-red: #e60000;
  --cl-red-bright: #ff0000;
  --cl-bg: #050505;
  --cl-card: rgba(22, 22, 22, 0.92);
  --cl-input: #1a1a1a;
  --cl-line: rgba(255, 255, 255, 0.14);
  --cl-muted: #b0b0b0;
  --cl-display: "Sora", system-ui, sans-serif;
  --cl-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--cl-bg);
  color: #fff;
  font-family: var(--cl-body);
}

body.fv-cl-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.fv-cl {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  isolation: isolate;
}

.fv-cl__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(20, 0, 0, 0.72) 100%),
    url("../img/company/login-hero.jpg") center / cover no-repeat;
}

.fv-cl__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 50% at 35% 70%, rgba(230, 0, 0, 0.28), transparent 70%),
    radial-gradient(ellipse 30% 40% at 80% 20%, rgba(230, 0, 0, 0.12), transparent 65%);
  pointer-events: none;
}

/* —— Hero (left) —— */
.fv-cl-hero {
  position: relative;
  z-index: 1;
  padding: 2rem 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.75rem;
  overflow: hidden;
}

.fv-cl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  width: fit-content;
  animation: fv-cl-fade-up 0.7s ease both;
}

.fv-cl-brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cl-red-bright);
  display: grid;
  place-items: center;
  font-family: var(--cl-display);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.5);
}

.fv-cl-brand__text {
  font-family: var(--cl-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  font-size: 0.95rem;
}

.fv-cl-brand__text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--cl-red-bright);
  margin-top: 0.1rem;
}

.fv-cl-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  animation: fv-cl-fade-up 0.75s ease 0.08s both;
}

.fv-cl-hero__copy h1 {
  margin: 0;
  font-family: var(--cl-display);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 700;
}

.fv-cl-hero__copy h1 em {
  font-style: normal;
  color: var(--cl-red-bright);
}

.fv-cl-hero__copy > p {
  margin: 1.1rem 0 1.6rem;
  color: #e8e8e8;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 32rem;
}

.fv-cl-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.fv-cl-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 0.98rem;
  animation: fv-cl-fade-up 0.6s ease both;
}

.fv-cl-features li:nth-child(1) { animation-delay: 0.15s; }
.fv-cl-features li:nth-child(2) { animation-delay: 0.2s; }
.fv-cl-features li:nth-child(3) { animation-delay: 0.25s; }
.fv-cl-features li:nth-child(4) { animation-delay: 0.3s; }
.fv-cl-features li:nth-child(5) { animation-delay: 0.35s; }
.fv-cl-features li:nth-child(6) { animation-delay: 0.4s; }

.fv-cl-features i {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--cl-red-bright);
  color: var(--cl-red-bright);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: rgba(230, 0, 0, 0.08);
}

.fv-cl-hero__visual {
  position: absolute;
  right: -4%;
  bottom: 4%;
  width: min(52%, 420px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  animation: fv-cl-float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

.fv-cl-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.fv-cl-hero__glow {
  position: absolute;
  left: 22%;
  bottom: 6%;
  width: 50%;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 0, 0, 0.55), transparent 70%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}

/* —— Panel (right) —— */
.fv-cl-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem 2.25rem 2rem;
  min-height: 100vh;
}

.fv-cl-lang {
  position: absolute;
  top: 1.25rem;
  right: 2.25rem;
  z-index: 20;
}

.fv-cl-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--cl-line);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-family: var(--cl-body);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fv-cl-lang__btn:hover,
.fv-cl-lang__btn[aria-expanded="true"] {
  border-color: rgba(255, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.15);
}

.fv-cl-lang__btn img {
  border-radius: 2px;
  object-fit: cover;
}

.fv-cl-lang__btn i {
  font-size: 0.7rem;
  opacity: 0.75;
}

.fv-cl-lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 100%;
  background: #161616;
  border: 1px solid var(--cl-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.fv-cl-lang__menu[hidden] { display: none; }

.fv-cl-lang__menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.fv-cl-lang__menu a:hover,
.fv-cl-lang__menu a.is-active {
  background: rgba(230, 0, 0, 0.18);
}

.fv-cl-lang__select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Card */
.fv-cl-card {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  background: var(--cl-card);
  border-radius: 18px;
  border: 1px solid rgba(230, 0, 0, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 0, 0, 0.08),
    0 0 40px rgba(230, 0, 0, 0.22),
    0 24px 48px rgba(0, 0, 0, 0.55);
  padding: 2rem 1.85rem 1.75rem;
  backdrop-filter: blur(14px);
  animation: fv-cl-card-in 0.75s ease 0.12s both;
  position: relative;
}

.fv-cl-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.15rem;
}

.fv-cl-card__brand .fv-cl-brand {
  margin-bottom: 0.45rem;
}

.fv-cl-card__panel-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cl-muted);
  letter-spacing: 0.01em;
}

/* Portal tabs */
.fv-cl-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid var(--cl-line);
}

.fv-cl-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e5e5e5;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fv-cl-tabs a i { font-size: 1rem; }

.fv-cl-tabs a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.fv-cl-tabs a.is-active {
  background: var(--cl-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 0, 0, 0.4);
}

/* Form */
.fv-cl-form .form-group {
  margin-bottom: 0.95rem;
  position: relative;
}

.fv-cl-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--cl-input);
  border: 1px solid var(--cl-line);
  border-radius: 10px;
  padding: 0 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fv-cl-field:focus-within {
  border-color: rgba(230, 0, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.15);
}

.fv-cl-field > i {
  color: var(--cl-muted);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.fv-cl-field .form-control {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  padding: 0.95rem 0 !important;
  font-size: 0.95rem;
  height: auto;
}

.fv-cl-field .form-control::placeholder {
  color: #8a8a8a;
}

.fv-cl-field .toggle-password {
  color: #8a8a8a;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
  order: 3;
}

.fv-cl-field .toggle-password:hover {
  color: var(--cl-red-bright);
}

.fv-cl-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 1.1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.fv-cl-options .form-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.fv-cl-options .form-check-label {
  color: #d4d4d4;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.fv-cl-options .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--cl-red);
  cursor: pointer;
}

.fv-cl-forgot {
  color: var(--cl-red-bright);
  text-decoration: none;
  font-weight: 600;
}

.fv-cl-forgot:hover {
  color: #ff4d4d;
  text-decoration: underline;
}

.fv-cl-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--cl-body);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--cl-red);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fv-cl-btn:hover {
  background: #c40000;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(230, 0, 0, 0.4);
  color: #fff;
}

.fv-cl-btn:active { transform: translateY(0); }
.fv-cl-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.fv-cl-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--cl-muted);
  font-size: 0.82rem;
}

.fv-cl-sep::before,
.fv-cl-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cl-line);
}

.fv-cl-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.fv-cl-social button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--cl-body);
  cursor: not-allowed;
  border: 1px solid var(--cl-line);
  transition: opacity 0.2s ease;
}

.fv-cl-social__google {
  background: #fff;
  color: #222;
}

.fv-cl-social__ms {
  background: #1a1a1a;
  color: #fff;
}

.fv-cl-social button:disabled { opacity: 0.9; }

.fv-cl-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--cl-muted);
}

.fv-cl-footer a,
.fv-cl-signup {
  color: var(--cl-red-bright);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.25rem;
}

.fv-cl-footer a:hover,
.fv-cl-signup:hover { text-decoration: underline; }
.fv-cl-signup i { margin-left: 0.2rem; font-size: 0.8rem; }

.login-error-banner {
  display: none;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: rgba(248, 215, 218, 0.95);
  color: #721c24;
  border: 1px solid #f5c6cb;
  font-size: 0.88rem;
}
.login-error-banner.is-visible { display: block; }

/* Overlays / splash (preserved behaviour) */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.login-overlay.is-active { display: flex; }
.login-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.9s linear infinite;
  margin-bottom: 14px;
}
.login-overlay .label { color: #fff; font-size: 14px; }
.login-overlay .box { display: flex; flex-direction: column; align-items: center; }
@keyframes login-spin { to { transform: rotate(360deg); } }

.fv-cl-card.is-leaving {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.login-success-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 40%, rgba(230, 0, 0, 0.25), transparent 70%),
    rgba(5, 5, 5, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease 0.15s, visibility 0s linear 0.75s;
}
.login-success-splash.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease 0.2s, visibility 0s;
}

.login-success-inner {
  width: 100%;
  max-width: 520px;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.fv-login-brand-loader {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-login-brand-loader .fv-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--cl-red);
  border-right-color: rgba(220, 53, 69, 0.55);
  border-radius: 50%;
  animation: login-spin 1.4s linear infinite;
}
.fv-login-brand-loader .fv-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  border-left-color: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: login-spin 2s linear infinite reverse;
}
.fv-login-brand-loader img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  animation: fv-login-logo-pulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(220, 53, 69, 0.55));
}
@keyframes fv-login-logo-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.92; }
}

.login-success-inner h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: var(--cl-display);
}
.login-success-inner .splash-preparing {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
}

.login-promo-carousel {
  min-height: 110px;
  position: relative;
  margin-bottom: 28px;
}
.login-promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 18px 20px;
}
.login-promo-slide.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.login-promo-slide h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}
.login-promo-slide p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.login-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}
.login-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cl-red), #ff6b7a);
  border-radius: 999px;
  transition: width 0.15s linear;
}

@keyframes fv-cl-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fv-cl-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fv-cl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .fv-cl-card.is-leaving,
  .login-success-splash,
  .login-promo-slide,
  .fv-login-brand-loader img,
  .fv-login-brand-loader .fv-ring,
  .fv-login-brand-loader .fv-ring::before,
  .fv-cl-hero__visual,
  .fv-cl-brand,
  .fv-cl-hero__copy,
  .fv-cl-features li,
  .fv-cl-card {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .fv-cl { grid-template-columns: 1fr; }
  .fv-cl-hero {
    min-height: auto;
    padding-bottom: 1rem;
  }
  .fv-cl-hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(80%, 360px);
    margin: 1rem auto 0;
  }
  .fv-cl-panel {
    min-height: auto;
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
  }
  .fv-cl-lang {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
  }
}

@media (max-width: 576px) {
  .fv-cl-hero { padding: 1.25rem 1.15rem 0.5rem; }
  .fv-cl-panel { padding: 0.5rem 1rem 2rem; }
  .fv-cl-card { padding: 1.5rem 1.15rem 1.35rem; }
  .fv-cl-options { flex-direction: column; align-items: flex-start; }
  .fv-cl-social { grid-template-columns: 1fr; }
  .fv-cl-features li { font-size: 0.9rem; }
}
