/* Dark Charcoal & Electric Blue theme for Auth pages */
body, html, .main, .main__platform, .header__wrapper, . {
  background: #121316 !important;
  color: #ffffff !important;
}

.modal-sign {
  background: #181a22 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65) !important;
}

.modal-sign__block-button,
.header__button,
#button-sign-up {
  background: linear-gradient(135deg, #2979ff, #0066ff) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.header__button-log-in {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
  transition: all 0.2s ease !important;
}

.header__button-log-in:hover {
  background: rgba(0, 102, 255, 0.15) !important;
  border-color: #0066ff !important;
  color: #ffffff !important;
}

.modal-sign__block-button:hover,
.header__button:hover,
#button-sign-up:hover {
  background: linear-gradient(135deg, #3d8bff, #2979ff) !important;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}

.modal-sign__tab.active,
.modal-sign__tab--active,
.modal-sign__tab:hover {
  color: #ffffff !important;
  border-bottom: 2px solid #0066ff !important;
}

.modal-sign__tab {
  color: #94a3b8 !important;
}

.modal-sign__input-value,
.select__element {
  display: block !important;
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  opacity: 1 !important;
  color: #ffffff !important;
  background: #1f222c00 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  appearance: auto !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modal-sign__input-value:focus,
.select__element:focus {
  border-color: #0066ff !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25) !important;
  outline: none !important;
}

.modal-sign__input-label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

.modal-sign__title,
h1, h2, h3 {
  color: #ffffff !important;
}

a {
  color: #2979ff !important;
}

.header__list--item a {
  color: #cbd5e1 !important;
}

.header__list--item a:hover {
  color: #ffffff !important;
}

.original-demo-notice,
.original-auth-alert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 8px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.original-demo-notice {
  border: 1px solid rgba(0, 102, 255, 0.35) !important;
  color: #cbd5e1 !important;
  background: rgba(0, 102, 255, 0.08) !important;
}

.original-demo-notice strong {
  color: #2979ff !important;
  font-size: 13px;
}

.original-auth-alert {
  border: 1px solid rgba(255, 82, 82, 0.35) !important;
  color: #ffc0c5 !important;
  background: rgba(255, 82, 82, 0.1) !important;
}

.original-auth-alert--success {
  border-color: rgba(0, 102, 255, 0.4) !important;
  background: rgba(0, 102, 255, 0.12) !important;
  color: #c2dcff !important;
}

.modal-sign__social,
.modal-sign__footer,
.header__social,
.footer__social,
.footer__block > div:last-child {
  display: none !important;
}

.header__logo img,
.footer__logo img,
.auth-logo img {
  max-width: 175px;
  height: auto;
}

.header__logo .quotex-logo,
.header__logo .platform-logo {
  display: block !important;
  width: 190px !important;
  height: 42px !important;
  background-image: url('/assets/img/55ak-wordmark.svg') !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-size: 190px 42px !important;
}

.modal-sign__input.select {
  height: auto !important;
  min-height: 48px !important;
}

.modal-sign__input.select-icon .icon-input {
  display: none !important;
}

.modal-sign__input.select-icon .select__element {
  padding-left: 12px !important;
}

.select__wrapper {
  display: none !important;
}

.main__platform-video__media {
  filter: saturate(0.8) hue-rotate(200deg);
  opacity: 0.65;
}

.modal-sign__input-tooltip {
  display: none !important;
}

.original-footer-note {
  display: block !important;
}

.original-footer-note .footer__text {
  max-width: 900px !important;
  color: #94a3b8 !important;
}

.original-footer-note p {
  margin: 0 0 12px !important;
  line-height: 1.55 !important;
}

.original-footer-note strong {
  color: #2979ff !important;
}

@media (max-width: 700px) {
  .original-demo-notice,
  .original-auth-alert {
    font-size: 11px;
  }
  .header__logo img {
    max-width: 145px;
  }
  .header__logo .quotex-logo,
  .header__logo .platform-logo {
    width: 42px !important;
    height: 42px !important;
    background-size: 190px 42px !important;
  }
}

.original-referral-field {
  position: relative;
}

.original-referral-field small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 400;
}

.original-referral-field input {
  text-transform: uppercase;
}

.original-referral-field input::placeholder {
  text-transform: none;
}

input[type="checkbox"] {
  accent-color: #0066ff !important;
}

.tabs__item:not(.active) { display: none !important; }
.tabs__item.active { display: block !important; }
.modal-sign__footer { display: none !important; }

.header__mobile-button, .header__language, .language-mobile { min-height: 44px; }
.header__mobile-button { min-width: 44px; }
.header a:focus-visible, .header button:focus-visible, .language-mobile:focus-visible {
  outline: 2px solid #7ac7ff;
  outline-offset: 3px;
}
.countries__menu.is-active {
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 4px;
  padding: 8px;
  max-width: calc(100vw - 24px);
  background: #242a38;
  border: 1px solid #485267;
  box-shadow: 0 12px 32px #0005;
}
.countries__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 5px;
  color: #edf3ff !important;
  text-decoration: none;
}
.countries__menu a:hover { background: #35445f; }
@media (max-width: 1024px) {
  body.auth-menu-open { overflow: hidden; }
  .header.is-mobile {
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow-y: auto;
    background: #161a24;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .header__mobile-container__nav a { display: block; min-height: 44px; padding: 12px; }
  .header__mobile-container__nav { margin-bottom: 8px; padding: 0; }
  .header.is-mobile #button-sign-up { display: none; }
  .countries__menu.mobile.is-active { width: max-content; max-height: 40vh; overflow-y: auto; }
}
