/**
 * Commercial360 brand overrides (C360 Brand Style Guide — May 2026)
 * Host: commercial360.ai, *.commercial360.ai
 */

html.brand-commercial360:not(.brand-ready) body {
  visibility: hidden !important;
}

html.brand-commercial360.brand-ready body {
  visibility: visible !important;
}

html.brand-commercial360,
body.brand-commercial360 {
  --brand: #1B3EBF;
  --brand-dark: #0f2878;
  --brand-light: #3d5fd4;
  --accent: #F5B400;
  --accent-text: #0A0A0A;
  --surface-auth: #1B3EBF;
  --gray-ui: #F2F3F7;
  --sidebar-bg: #0A0A0A;
  --sidebar-hover: #1B3EBF;
  --sidebar-active: #1B3EBF;
}

/* ---- Auth layout ---- */
body.brand-commercial360 .auth {
  min-height: 100vh;
  width: 100%;
  background: #0A0A0A;
}

body.brand-commercial360 .auth__bg {
  display: none !important;
}

/* Left: logo on black + yellow brand divider */
body.brand-commercial360 .auth__main {
  display: flex !important;
  flex: 1 1 44%;
  min-height: 100vh;
  max-height: none;
  padding: 56px 48px;
  background: #0A0A0A !important;
  background-image: none !important;
  border-right: 4px solid #F5B400;
  box-sizing: border-box;
}

body.brand-commercial360 .auth__main::before {
  display: none !important;
}

body.brand-commercial360 .auth__preview {
  margin-bottom: 28px;
}

body.brand-commercial360 .auth__pic {
  display: block !important;
  width: auto !important;
  max-width: min(340px, 88vw) !important;
  height: auto !important;
  margin: 0 auto;
}

body.brand-commercial360 .auth__main .auth__title,
body.brand-commercial360 .auth__main h1.display-4 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.brand-commercial360 .auth__main .auth__wrap,
body.brand-commercial360 .auth__main .lead {
  color: rgba(255, 255, 255, 0.88);
}

/* Right: clean blue gradient — no diagonal stripe */
body.brand-commercial360 .auth__container {
  flex: 1 1 56%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #2a4ec9 0%, #1B3EBF 38%, #0f2878 100%) !important;
  background-color: #1B3EBF !important;
  border-radius: 0 !important;
}

body.brand-commercial360 .auth__container::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(245, 180, 0, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

body.brand-commercial360 .auth__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto !important;
  padding: 40px 36px !important;
  box-sizing: border-box;
}

body.brand-commercial360 .auth__form {
  max-width: 100%;
  margin: 0 auto;
}

body.brand-commercial360 .auth__head {
  margin-bottom: 40px;
}

body.brand-commercial360 .auth__head .auth__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  body.brand-commercial360 .auth__container .auth__head .auth__title.auth--hide-on-desktop {
    display: none;
  }
}

body.brand-commercial360 .auth__main .auth__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 320px;
  margin: 12px auto 0;
}

body.brand-commercial360 .auth__container .field__label {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.brand-commercial360 .auth__container .field__wrap,
body.brand-commercial360 .auth__container .field__input,
body.brand-commercial360 .auth__container .field__icon {
  color: #fff !important;
}

body.brand-commercial360 .auth__container .field__input {
  border-bottom-color: rgba(255, 255, 255, 0.45) !important;
}

body.brand-commercial360 .auth__container .field__input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

body.brand-commercial360 .auth__container .field__input:focus {
  border-bottom-color: #F5B400 !important;
  outline: none;
}

body.brand-commercial360 .auth__btns {
  margin-top: 32px;
  gap: 12px;
}

/* Primary CTA: brand yellow */
body.brand-commercial360 .btn.auth__btn:not(.btn_light) {
  background: #F5B400 !important;
  border: none !important;
  color: #0A0A0A !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

body.brand-commercial360 .btn.auth__btn:not(.btn_light):hover {
  background: #ffca2c !important;
  color: #0A0A0A !important;
}

/* Secondary: clear outline */
body.brand-commercial360 .btn.btn_light.auth__btn {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

body.brand-commercial360 .btn.btn_light.auth__btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #fff !important;
  color: #fff !important;
}

body.brand-commercial360 .auth__container a strong,
body.brand-commercial360 .auth__container a u {
  color: #F5B400 !important;
}

/* Signup flow */
body.brand-commercial360 .signup-form {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body.brand-commercial360 .signup-form .btn-primary,
body.brand-commercial360 .signup-form .btn-primary:hover {
  background-color: #1B3EBF !important;
  border-color: #1B3EBF !important;
}

body.brand-commercial360 .signup-form h2 {
  color: #111827;
}

/* ---- Logged-in app ---- */
body.brand-commercial360 .sidebar .arrow-toggle,
body.brand-commercial360 .menu-button {
  background-color: #1B3EBF !important;
}

body.brand-commercial360 .sidebar .nav__link_head .nav__title {
  display: none !important;
}

body.brand-commercial360 .sidebar .nav__link_head .nav__preview {
  width: 100%;
}

body.brand-commercial360 .nav__link.active,
body.brand-commercial360 .nav__link:hover {
  background: #1B3EBF !important;
}

body.brand-commercial360 .page__title,
body.brand-commercial360 .container__title {
  color: #111827;
}

body.brand-commercial360 .btn-primary:not(.auth__btn) {
  background: #1B3EBF !important;
  border-color: #1B3EBF !important;
}

body.brand-commercial360 .btn-primary:not(.auth__btn):hover {
  background: #0f2878 !important;
  border-color: #0f2878 !important;
}

@media (max-width: 1023px) {
  body.brand-commercial360 .auth__main {
    min-height: auto;
    padding: 36px 24px;
    border-right: none;
    border-bottom: 4px solid #F5B400;
  }

  body.brand-commercial360 .auth__container {
    margin-top: 0 !important;
    border-radius: 0 !important;
  }

  body.brand-commercial360 .auth__container .auth__head .auth__title {
    display: block;
    color: #fff;
  }

  body.brand-commercial360 .auth__inner {
    margin: 0 auto !important;
    padding: 40px 28px !important;
  }
}
