/* Dark Charcoal & Electric Blue theme for Auth pages */
body, html, .main, .main__platform, .header__wrapper, .footer__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: #1f222c !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; }

/* Readable auth layout: native fields, no overlapping search overlays. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { font-family:Arial,Helvetica,sans-serif!important; font-size:16px; line-height:1.5; }
.sign__container { padding:44px 20px 64px!important; min-height:calc(100vh - 80px); }
.sign__form { width:440px!important; max-width:100%!important; margin:0 auto!important; }
.sign__title { font-size:32px!important; line-height:1.2!important; font-weight:700!important; margin-bottom:24px!important; }
.modal-sign__block { background:#202530!important; border:1px solid #343c4c; border-radius:12px!important; overflow:visible!important; box-shadow:0 12px 36px #0003; }
.modal-sign__tabs { padding:20px!important; border-bottom:1px solid #343c4c!important; }
.modal-sign__tabs-block { display:flex!important; width:100%!important; background:#151a23!important; padding:4px!important; border-radius:8px!important; }
.modal-sign__tab { flex:1; text-align:center; font-size:15px!important; padding:11px 16px!important; line-height:22px!important; }
.modal-sign__tab.active { background:#30394a!important; border-radius:6px; }
.sign__form form { padding:26px 28px 28px!important; }
.sign__form .modal-sign__input { height:auto!important; min-height:0!important; margin:0 0 20px!important; background:transparent!important; border:0!important; border-radius:0!important; }
.sign__form .modal-sign__input-label { display:block!important; position:static!important; transform:none!important; font-size:14px!important; line-height:20px!important; margin:0 0 8px!important; padding:0!important; background:transparent!important; color:#e0e6ef!important; }
.sign__form .modal-sign__input-value,.sign__form .select__element { font-family:inherit!important; font-size:16px!important; line-height:24px!important; height:48px!important; min-height:48px!important; padding:10px 14px!important; background:#141922!important; border:1px solid #465166!important; border-radius:7px!important; color:#fff!important; width:100%!important; }
.sign__form input::placeholder { color:#9ba7ba!important; opacity:1; }
.select-input-container { position:relative; margin:0!important; }
.select-input-container > .select-input,.select-input-container > .select-button-close { display:none!important; }
.sign__form .modal-sign__input-checkbox,.sign__form .modal-sign__checkbox { font-size:14px!important; line-height:21px!important; }
.sign__form label { font-size:14px; line-height:21px; }
.sign__form input[type=checkbox] { width:18px; height:18px; flex-shrink:0; }
.sign__form .modal-sign__block-button { width:100%!important; min-height:48px!important; font-size:16px!important; line-height:24px!important; box-shadow:none!important; margin-top:12px!important; }
.original-demo-notice { font-size:13px!important; padding:12px 16px; margin-bottom:16px; }
.header__logo { display:flex!important; align-items:center; min-width:140px; }
.header__logo img { display:block!important; width:160px; max-width:100%; max-height:44px; object-fit:contain; }
@media(max-width:600px) {
 .sign__container { padding:28px 16px 40px!important; }
 .sign__title { font-size:28px!important; }
 .sign__form form { padding:22px 20px!important; }
 .modal-sign__tabs { padding:16px!important; }
 .modal-sign__tab { padding:10px 8px!important; }
}

@media(max-width:600px){.header__logo{min-width:0!important;width:56px!important}.sign__form .tabs__item{padding:0!important}.sign__form .select__element{padding-right:24px!important}}

.sign__form .modal-sign__block{padding:0!important;}
.sign__form .modal-sign__block-checked{display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
.sign__form .modal-sign__block-checked-forgot{font-size:14px!important;line-height:20px!important;}
.sign__form .modal-sign__checked-container{font-size:14px!important;line-height:21px!important;}
@media(max-width:380px){.sign__form .modal-sign__block-checked{align-items:flex-start;flex-direction:column;}.sign__form form{padding:22px 16px!important;}}
