/* FXCTRUM brand — header + auth (mobile-first polish) */

/* ===== Header ===== */
.header-top { background: #000 !important; }
.header-bottom {
  background: #000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-top-area .header-top-item a,
.header-top-area .header-top-item span,
.header-area .menu > li > a,
.header-area .menu li a,
.menu li a { color: #fff !important; }
.header-area .menu li a:hover,
.menu li a:hover,
.header-top-area .header-top-item a:hover { color: #4da3ff !important; }
.header-area .menu li .submenu {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.header-area .menu li .submenu li a,
.menu li .submenu li a { color: #fff !important; }
.header-bar span { background: #fff !important; }
@media (max-width: 991px) {
  .menu { background: #000 !important; }
  .menu li a {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
}
.header-top-area .select-bar,
.header-top-area .select-bar .current,
.langSel {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ===== Shared auth shell ===== */
.fxc-auth-section,
.fxc-register-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: #fff;
  box-sizing: border-box;
}
.fxc-auth-section *,
.fxc-register-section * { box-sizing: border-box; }

.fxc-auth-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}
.fxc-auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.25) 48%, rgba(0,0,0,.62) 100%);
  z-index: 1;
  pointer-events: none;
}
.fxc-auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.fxc-auth-row {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Hide duplicate logos */
.fxc-login-section .fxc-auth-logo,
.fxc-register-section .sidebar__logo,
.fxc-register-section .sidebar__main-logo { display: none !important; }

/* ===== Login card ===== */
.fxc-auth-card {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  background: rgba(8, 14, 28, 0.82);
  border: 1px solid rgba(77, 163, 255, 0.42);
  border-radius: 20px;
  padding: 28px 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.fxc-auth-title {
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 8px;
  word-break: break-word;
}
.fxc-auth-title strong { color: #4da3ff; }
.fxc-auth-subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
}
.fxc-auth-form .form-group { margin-bottom: 0.95rem; }
.fxc-auth-form .form-label,
.fxc-auth-card .form-label {
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.fxc-auth-form input[type="text"],
.fxc-auth-form input[type="email"],
.fxc-auth-form input[type="password"],
.fxc-auth-form input[type="number"],
.fxc-auth-form input[type="tel"],
.fxc-auth-form select,
.fxc-auth-card input:not([type="checkbox"]):not([type="radio"]),
.fxc-auth-card select {
  width: 100% !important;
  min-height: 48px;
  padding: 12px 14px !important;
  font-size: 16px !important;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: 12px !important;
  outline: none;
}
.fxc-auth-form input:focus,
.fxc-auth-card input:focus,
.fxc-auth-form select:focus {
  border-color: rgba(77, 163, 255, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.2);
}
.fxc-auth-form .form-check-label { color: #fff !important; }
.fxc-auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.fxc-auth-actions .form--check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.fxc-btn-primary,
.fxc-auth-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #fff !important;
  background: linear-gradient(90deg, #1a5cff 0%, #33b7ff 100%) !important;
  box-shadow: 0 10px 28px rgba(26, 92, 255, 0.35);
}
.fxc-link { color: #4da3ff !important; font-weight: 600; text-decoration: none !important; }
.fxc-link:hover { color: #8ec8ff !important; text-decoration: underline !important; }
.fxc-muted { color: rgba(255, 255, 255, 0.75); margin-right: 6px; }
.fxc-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 10px 0 6px;
}
.fxc-or::before,
.fxc-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.fxc-auth-footer {
  text-align: center;
  margin-top: 4px;
  line-height: 1.5;
}

/* ===== Register section ===== */
.fxc-register-section {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
.fxc-register-section > .container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1;
}
.fxc-register-section .account-wrapper,
.fxc-register-section .login-area,
.fxc-register-section .account-area,
.fxc-register-section .row.m-0 {
  background: none !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.fxc-register-section .col-lg-7,
.fxc-register-section .col-md-6,
.fxc-register-section .col-lg-10,
.fxc-register-section .col-lg-2,
.fxc-register-section .col-md-12 {
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.fxc-register-section .col-lg-2 { display: none !important; }

.fxc-register-section .common-form-style,
.fxc-register-section .create-account {
  background: rgba(8, 14, 28, 0.84) !important;
  border: 1px solid rgba(77, 163, 255, 0.42) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 28px 24px !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.fxc-register-section .common-form-style .title,
.fxc-register-section .create-account .title,
.fxc-register-section h4.title,
.fxc-register-section .title.text-white {
  color: #fff !important;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
  margin: 0 0 8px !important;
}
.fxc-register-section .common-form-style > p,
.fxc-register-section .create-account > p,
.fxc-register-section .common-form-style .title + p,
.fxc-register-section .create-account .title + p {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  margin: 0 0 1.15rem !important;
  max-width: 36em;
}
.fxc-register-section label,
.fxc-register-section .form-label {
  color: #fff !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}
.fxc-register-section .form-group { margin-bottom: 0.9rem !important; }
.fxc-register-section form.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.fxc-register-section form.row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.fxc-register-section input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.fxc-register-section select,
.fxc-register-section .form-control {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
.fxc-register-section .input-group {
  display: flex !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
}
.fxc-register-section .input-group-text.mobile-code {
  height: auto !important;
  min-height: 48px !important;
  min-width: 64px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-right: 0 !important;
  border-radius: 12px 0 0 12px !important;
  color: #fff !important;
  font-weight: 600;
}
.fxc-register-section .input-group .form-control,
.fxc-register-section .input-group input[name="mobile"] {
  border-radius: 0 12px 12px 0 !important;
  border-left: 0 !important;
}
.fxc-register-section .input-popup {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fxc-register-section .input-popup p {
  margin: 0 0 4px !important;
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
}
.fxc-register-section .input-popup p:last-child { margin-bottom: 0 !important; }
.fxc-register-section .form--check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  color: #fff !important;
}
.fxc-register-section a { color: #4da3ff !important; }
.fxc-register-section button[type="submit"],
.fxc-register-section input[type="submit"],
.fxc-register-section .btn--base {
  width: 100% !important;
  min-height: 50px !important;
  margin-top: 4px;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #fff !important;
  background: linear-gradient(90deg, #1a5cff 0%, #33b7ff 100%) !important;
  box-shadow: 0 10px 28px rgba(26, 92, 255, 0.35);
}
.fxc-register-section a.custom-button.account-control-button,
.fxc-register-section a.account-control-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(77, 163, 255, 0.55) !important;
  background: transparent !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Desktop register: 2-col fields */
@media (min-width: 768px) {
  .fxc-register-section form.row > .col-md-6 {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
  }
  .fxc-register-section form.row {
    column-gap: 16px;
  }
  .fxc-register-section form.row > .col-md-12,
  .fxc-register-section form.row > .form-group.col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ===== Tablet ===== */
@media (max-width: 991px) {
  .fxc-auth-bg { background-position: 64% center; }
  .fxc-auth-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.62) 100%);
  }
  .fxc-auth-row { justify-content: center; }
  .fxc-auth-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
  }
  .fxc-register-section { background-position: 60% center !important; }
  .fxc-register-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 0;
    pointer-events: none;
  }
}

/* ===== Mobile phones ===== */
@media (max-width: 767px) {
  body:has(.fxc-login-section),
  body:has(.fxc-register-section) {
    background: #05070f;
  }

  .fxc-auth-section,
  .fxc-register-section {
    min-height: 100dvh;
    display: flex !important;
    align-items: stretch;
    justify-content: center;
  }

  .fxc-auth-bg {
    background-position: 72% center;
    filter: brightness(0.72);
  }
  .fxc-auth-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 8, 18, 0.55) 0%,
      rgba(5, 8, 18, 0.72) 45%,
      rgba(5, 8, 18, 0.88) 100%
    );
  }

  .fxc-auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .fxc-auth-row {
    min-height: auto;
    width: 100%;
    padding: 12px 0 20px;
    align-items: center !important;
    justify-content: center !important;
  }
  .fxc-auth-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .fxc-auth-card {
    max-width: 100%;
    margin: 0;
    padding: 22px 16px 20px;
    border-radius: 16px;
    background: rgba(8, 14, 28, 0.9);
  }

  .fxc-auth-title { font-size: 1.4rem; margin-bottom: 6px; }
  .fxc-auth-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.05rem;
  }

  .fxc-auth-form .form-group { margin-bottom: 0.85rem; }
  .fxc-auth-form input[type="text"],
  .fxc-auth-form input[type="password"],
  .fxc-auth-form input[type="email"] {
    min-height: 50px;
  }

  .fxc-auth-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .fxc-auth-actions .fxc-link { font-size: 0.9rem; white-space: nowrap; }

  .fxc-btn-primary { min-height: 52px; font-size: 1.02rem !important; }
  .fxc-or { margin: 12px 0 8px; }
  .fxc-auth-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }
  .fxc-auth-footer .fxc-muted { margin-right: 0; }

  /* Register mobile */
  .fxc-register-section {
    align-items: flex-start !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)) !important;
    background-position: 75% center !important;
  }
  .fxc-register-section::before {
    background: linear-gradient(
      180deg,
      rgba(5, 8, 18, 0.55) 0%,
      rgba(5, 8, 18, 0.78) 40%,
      rgba(5, 8, 18, 0.9) 100%
    );
  }
  .fxc-register-section > .container { max-width: 100%; }
  .fxc-register-section .common-form-style,
  .fxc-register-section .create-account {
    max-width: 100% !important;
    padding: 18px 14px 16px !important;
    border-radius: 16px !important;
    background: rgba(8, 14, 28, 0.92) !important;
  }
  /* Mobile heading + subtitle — compact, readable */
  .fxc-register-section .common-form-style .title,
  .fxc-register-section .create-account .title,
  .fxc-register-section h4.title,
  .fxc-register-section .title.text-white {
    font-size: 1.22rem !important;
    line-height: 1.28 !important;
    margin: 0 0 6px !important;
  }
  .fxc-register-section .common-form-style > p,
  .fxc-register-section .create-account > p,
  .fxc-register-section .common-form-style .title + p,
  .fxc-register-section .create-account .title + p,
  .fxc-register-section .mb-sm-4.mb-3 {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 0 0 0.9rem !important;
    max-width: none;
  }
  .fxc-auth-title {
    font-size: 1.22rem !important;
    line-height: 1.28 !important;
  }
  .fxc-auth-subtitle {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .fxc-register-section form.row > [class*="col-"],
  .fxc-register-section form.row > .col-md-6,
  .fxc-register-section form.row > .col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .fxc-register-section .input-popup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    padding: 8px 10px;
  }
  .fxc-register-section .input-popup p {
    font-size: 0.72rem !important;
    margin: 0 !important;
  }

  .fxc-register-section .form--check {
    flex-direction: row;
    align-items: flex-start;
  }
  .fxc-register-section .form--check .form-check-label {
    flex: 0 0 auto;
  }
  .fxc-register-section .form--check > span {
    display: inline;
    line-height: 1.4;
  }
}

/* ===== Very small phones ===== */
@media (max-width: 380px) {
  .fxc-auth-card,
  .fxc-register-section .common-form-style,
  .fxc-register-section .create-account {
    padding: 16px 12px 14px !important;
    border-radius: 14px !important;
  }
  .fxc-auth-title,
  .fxc-register-section .common-form-style .title,
  .fxc-register-section .create-account .title,
  .fxc-register-section h4.title,
  .fxc-register-section .title.text-white {
    font-size: 1.12rem !important;
  }
  .fxc-auth-subtitle,
  .fxc-register-section .common-form-style > p,
  .fxc-register-section .create-account > p,
  .fxc-register-section .mb-sm-4.mb-3 {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }
  .fxc-auth-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .fxc-register-section .input-popup {
    grid-template-columns: 1fr;
  }
}

/* Landscape short screens */
@media (max-height: 520px) and (orientation: landscape) {
  .fxc-auth-row,
  .fxc-auth-section,
  .fxc-register-section {
    min-height: auto;
  }
  .fxc-auth-container,
  .fxc-register-section {
    align-items: flex-start !important;
    padding-top: 12px !important;
  }
  .fxc-auth-card {
    margin: 8px auto 16px;
  }
}
