/* Auth Marketing — Professional 2-column layout */
/* Palette: bg #0a0a0f, surface #0e0e14, orange #ff6b1a, orange-light #ff8c42 */

/* ═══ HIDE HUD CORNERS ═══ */
.mil-hud-corner {
  display: none !important;
}

/* ═══ BACKGROUND ═══ */
.screen.auth:not(.hidden) {
  background: #0a0a0f url('../img/auth-bg.png') no-repeat center center / cover !important;
}
.auth-bg {
  background: linear-gradient(to right, rgba(6,6,12,.72) 0%, rgba(6,6,12,.3) 45%, rgba(6,6,12,.82) 100%) !important;
}
.auth-bg-glow {
  display: none !important;
}

/* ═══ TITLE & SUBTITLE ═══ */
.auth-title {
  font-size: 48px !important;
  font-weight: 900 !important;
  letter-spacing: .15em !important;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 50%, #fff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 12px rgba(255,107,26,.3));
  margin-top: 12px !important;
}
.auth-title span {
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.auth-sub {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.55) !important;
  letter-spacing: .08em !important;
  margin-top: 8px !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* ═══ DESKTOP LAYOUT (900px+) ═══ */
@media (min-width: 900px) {
  .screen.auth:not(.hidden) {
    display: grid !important;
    grid-template-columns: 1fr 520px;
    grid-template-rows: 1fr;
    padding: 24px 0 24px 0 !important;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    height: 100%;
  }
  .auth-bg {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  /* Left content — centered on login, top-aligned on signup */
  .auth-hero {
    grid-column: 1;
    grid-row: 1;
    padding: 20px 40px 20px 40px !important;
    text-align: center !important;
    align-self: stretch;
    max-width: none;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .auth-hero.auth-hero--signup {
    justify-content: flex-start !important;
  }
  .auth-hero .auth-logo {
    margin: 0 auto 10px auto !important;
    display: block !important;
    width: 64px !important;
    height: 64px !important;
  }

  /* Right column: tabs fixed at top, form scrollable below */
  .auth-tabs {
    grid-column: 2;
    grid-row: 1;
    max-width: none !important;
    width: calc(100% - 32px) !important;
    margin: 0 16px !important;
    box-sizing: border-box;
    align-self: start;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .auth-form {
    grid-column: 2;
    grid-row: 1;
    max-width: none !important;
    width: calc(100% - 32px) !important;
    margin: 0 16px !important;
    margin-top: 60px !important;
    padding: 16px 16px !important;
    box-sizing: border-box;
    align-self: start;
    overflow-y: auto;
    max-height: calc(100vh - 110px);
  }

  /* Left content alignment */
  .auth-how-steps {
    justify-content: center !important;
  }
  .auth-partners-logos {
    justify-content: center !important;
  }
  .auth-how-title {
    justify-content: center !important;
  }
  .auth-partners-title {
    text-align: center !important;
  }
  .auth-countdown {
    justify-content: center !important;
  }
}

/* ═══ LARGE DESKTOP (1200px+) ═══ */
@media (min-width: 1200px) {
  .screen.auth:not(.hidden) {
    grid-template-columns: 1fr 560px;
  }
  .auth-hero {
    padding: 20px 60px 20px 100px !important;
  }
}

/* ═══ ULTRAWIDE (1600px+) ═══ */
@media (min-width: 1600px) {
  .screen.auth:not(.hidden) {
    grid-template-columns: 1fr 600px;
  }
  .auth-hero {
    padding: 24px 80px 24px 140px !important;
  }
}

/* ═══ FORM CARD ═══ */
.auth-form {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 20px 16px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  gap: 10px !important;
}
.auth-form::-webkit-scrollbar {
  width: 4px;
}
.auth-form::-webkit-scrollbar-track {
  background: transparent;
}
.auth-form::-webkit-scrollbar-thumb {
  background: rgba(255,107,26,.3);
  border-radius: 4px;
}
.auth-form::-webkit-scrollbar-thumb:hover {
  background: rgba(255,107,26,.5);
}

/* ═══ TABS ═══ */
.auth-tabs {
  background: rgba(10,10,16,.7) !important;
  border: 1px solid rgba(255,107,26,.2) !important;
  border-radius: 999px !important;
  padding: 4px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.auth-tab {
  border-radius: 999px !important;
  font-size: 14px !important;
  padding: 10px 28px !important;
}
.auth-tab.active {
  background: linear-gradient(135deg, #ff6b1a, #e85d10) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(255,107,26,.4) !important;
}
.auth-tab:not(.active) {
  background: transparent !important;
  color: #888 !important;
  box-shadow: none !important;
}

/* ═══ FORM INPUTS ═══ */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select,
.auth-country-select {
  background: rgba(6,6,10,.95) !important;
  border: 1px solid rgba(255,107,26,.25) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  color: #e0e0e0 !important;
  font-size: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.auth-form input::placeholder {
  color: rgba(255,255,255,.3) !important;
}
.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(255,107,26,.55) !important;
  box-shadow: 0 0 0 3px rgba(255,107,26,.07) !important;
}

/* ═══ PRIMARY BUTTON ═══ */
.auth-form .btn-primary {
  background: linear-gradient(180deg, #ff8c42 0%, #ff6b1a 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  padding: 14px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 6px 24px rgba(255,107,26,.35) !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  width: 100% !important;
  margin-top: 2px !important;
}
.auth-form .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(255,107,26,.5) !important;
  transform: translateY(-1px);
}

/* ═══ GOOGLE BUTTON ═══ */
.btn-google {
  background: rgba(10,10,16,.9) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  color: #e0e0e0 !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  width: 100% !important;
}

/* ═══ DIVIDER ═══ */
.auth-divider {
  color: #444 !important;
  margin: 2px 0 !important;
}
.auth-divider span {
  background: transparent !important;
}

/* ═══ TERMS TEXT ═══ */
.auth-terms {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin: 8px 0 0 0;
  line-height: 1.5;
}
.auth-terms-link {
  color: #ff6b1a;
  text-decoration: none;
  font-weight: 600;
}
.auth-terms-link:hover {
  text-decoration: underline;
}

/* ═══ PASSWORD TOGGLE ═══ */
.auth-pw-wrap {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}
.auth-pw-wrap input[type="password"],
.auth-pw-wrap input[type="text"] {
  padding-right: 48px !important;
  width: 100% !important;
}
.auth-pw-toggle {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  padding: 4px !important;
  cursor: pointer !important;
  color: rgba(255,255,255,.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color .2s !important;
  z-index: 2 !important;
}
.auth-pw-toggle:hover {
  color: rgba(255,255,255,.7) !important;
}
.auth-pw-toggle.active {
  color: #ff6b1a !important;
}

/* ═══ MARKETING SECTIONS — hidden by default ═══ */
.auth-launch,
.auth-countdown,
.auth-how,
.auth-partners {
  display: none !important;
}
.auth-hero--signup .auth-launch {
  display: block !important;
}
.auth-hero--signup .auth-countdown {
  display: flex !important;
}
.auth-hero--signup .auth-how {
  display: block !important;
}
.auth-hero--signup .auth-partners {
  display: block !important;
}

/* ═══ LAUNCH BADGE ═══ */
.auth-launch {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.auth-launch-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,107,26,.1);
  border: 1px solid rgba(255,107,26,.45);
  border-radius: 999px;
  color: #ff6b1a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.auth-launch-date {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .01em;
}
.auth-launch-sub {
  margin-top: 10px;
  font-size: 16px;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
  font-weight: 500;
}

/* ═══ COUNTDOWN ═══ */
.auth-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.auth-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(6,6,12,.85);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 80px;
}
.auth-cd-num {
  font-size: 32px;
  font-weight: 900;
  color: #ff6b1a;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.auth-cd-label {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 6px;
  font-weight: 600;
}
.auth-cd-sep {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  animation: sepBlink 1s step-end infinite;
}
@keyframes sepBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ═══ HOW IT WORKS ═══ */
.auth-how {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.auth-how-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-how-title::before,
.auth-how-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}
@media (min-width: 900px) {
  .auth-how-title::before { display: block; }
}
.auth-how-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-step {
  position: relative;
  background: rgba(14,14,20,.6);
  border: 1px solid rgba(255,107,26,.12);
  border-radius: 12px;
  padding: 14px 12px 12px;
  width: 135px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.auth-step:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,26,.35);
}
.auth-step-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,26,.08);
  border: 1px solid rgba(255,107,26,.2);
  border-radius: 10px;
  color: #ff6b1a;
}
.auth-step-icon svg {
  width: 18px;
  height: 18px;
}
.auth-step-num {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,.18);
}
.auth-step-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.auth-step-desc {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  line-height: 1.35;
}

/* ═══ PARTNERS ═══ */
.auth-partners {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 1;
}
.auth-partners-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 10px;
}
.auth-partners-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.auth-partner-logo {
  color: rgba(255,255,255,.35);
  transition: color .2s ease, filter .2s ease;
  display: flex;
  align-items: center;
}
.auth-partner-logo:hover {
  color: rgba(255,255,255,.7);
}
.auth-partner-logo img {
  transition: filter .2s ease;
}
.auth-partner-logo:hover img {
  filter: brightness(0) invert(.8) !important;
}

/* ═══ SMALLER DESKTOP / LAPTOP (900px - 1199px) ═══ */
@media (min-width: 900px) and (max-width: 1199px) {
  .screen.auth:not(.hidden) {
    grid-template-columns: 1fr 440px;
  }
  .auth-hero {
    padding: 16px 24px 16px 48px !important;
  }
  .auth-hero .auth-logo {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 6px !important;
  }
  .auth-launch {
    margin-top: 10px;
  }
  .auth-launch-date {
    font-size: 20px;
    margin-top: 6px;
  }
  .auth-countdown {
    margin-top: 10px;
  }
  .auth-cd-block {
    min-width: 48px;
    padding: 8px 10px;
  }
  .auth-cd-num {
    font-size: 20px;
  }
  .auth-cd-label {
    font-size: 8px;
  }
  .auth-how {
    margin-top: 14px;
  }
  .auth-how-title {
    margin-bottom: 8px;
    font-size: 10px;
  }
  .auth-step {
    width: 115px;
    padding: 10px 8px 10px;
  }
  .auth-step-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }
  .auth-step-icon svg {
    width: 15px;
    height: 15px;
  }
  .auth-step-title {
    font-size: 11px;
  }
  .auth-step-desc {
    font-size: 9px;
  }
  .auth-partners {
    margin-top: 12px;
    padding-top: 10px;
  }
  .auth-partners-title {
    margin-bottom: 8px;
  }
  .auth-partners-logos {
    gap: 18px;
  }
  .auth-form {
    padding: 18px 18px !important;
    gap: 8px !important;
  }
  .auth-form input[type="text"],
  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-form select,
  .auth-country-select {
    padding: 12px 14px !important;
    font-size: 13px !important;
  }
  .auth-form .btn-primary {
    padding: 12px !important;
    font-size: 13px !important;
  }
  .btn-google {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
  .auth-tabs {
    margin-bottom: -6px !important;
  }
  .auth-tab {
    padding: 8px 22px !important;
    font-size: 13px !important;
  }
}

/* ═══ SHORT SCREENS (height < 800px) ═══ */
@media (min-width: 900px) and (max-height: 800px) {
  .auth-hero {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .auth-hero .auth-logo {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 4px !important;
  }
  .auth-launch {
    margin-top: 8px;
  }
  .auth-launch-badge {
    padding: 4px 14px;
    font-size: 10px;
  }
  .auth-launch-date {
    font-size: 18px;
    margin-top: 4px;
  }
  .auth-countdown {
    margin-top: 8px;
  }
  .auth-cd-block {
    min-width: 44px;
    padding: 6px 8px;
    border-radius: 10px;
  }
  .auth-cd-num {
    font-size: 18px;
  }
  .auth-cd-label {
    font-size: 8px;
    margin-top: 2px;
  }
  .auth-cd-sep {
    font-size: 16px;
  }
  .auth-how {
    margin-top: 10px;
  }
  .auth-how-title {
    margin-bottom: 6px;
    font-size: 9px;
  }
  .auth-step {
    width: 105px;
    padding: 8px 6px 8px;
    border-radius: 10px;
  }
  .auth-step-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    border-radius: 8px;
  }
  .auth-step-icon svg {
    width: 14px;
    height: 14px;
  }
  .auth-step-title {
    font-size: 10px;
    margin-bottom: 2px;
  }
  .auth-step-desc {
    font-size: 9px;
  }
  .auth-step-num {
    font-size: 9px;
    top: 4px;
    right: 6px;
  }
  .auth-partners {
    margin-top: 10px;
    padding-top: 8px;
  }
  .auth-partners-title {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .auth-partners-logos {
    gap: 16px;
  }
  .auth-form {
    padding: 16px 16px !important;
    gap: 7px !important;
    border-radius: 16px !important;
  }
  .auth-form input[type="text"],
  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-form select,
  .auth-country-select {
    padding: 11px 12px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  .auth-form .btn-primary {
    padding: 11px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  .btn-google {
    padding: 9px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
  .auth-divider {
    margin: 0 !important;
    font-size: 12px !important;
  }
  .auth-tab {
    padding: 8px 20px !important;
    font-size: 12px !important;
  }
}

/* ═══ MOBILE (< 900px) ═══ */
@media (max-width: 899px) {
  .screen.auth:not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 24px 20px !important;
    overflow-y: auto !important;
  }
  .auth-hero {
    text-align: center !important;
    width: 100%;
    max-width: 440px;
  }
  .auth-hero .auth-logo {
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto !important;
  }
  .auth-tabs {
    width: 100% !important;
    max-width: 400px !important;
  }
  .auth-form {
    width: 100% !important;
    max-width: 400px !important;
    background: rgba(10,10,16,.92) !important;
    border: 1px solid rgba(255,107,26,.06) !important;
    border-radius: 20px !important;
    padding: 28px 22px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }
  .auth-how-steps {
    justify-content: center !important;
  }
  .auth-partners-logos {
    justify-content: center !important;
  }
  .auth-countdown {
    justify-content: center !important;
  }
  .auth-cd-block {
    min-width: 56px;
    padding: 10px 12px;
  }
  .auth-cd-num {
    font-size: 24px;
  }
  .auth-step {
    width: 130px;
    padding: 18px 12px 14px;
  }
}

@media (max-width: 420px) {
  .auth-launch-date {
    font-size: 22px;
  }
  .auth-step {
    width: 105px;
    padding: 14px 8px 12px;
  }
  .auth-step-icon {
    width: 36px;
    height: 36px;
  }
  .auth-cd-block {
    min-width: 48px;
    padding: 8px 10px;
  }
  .auth-cd-num {
    font-size: 20px;
  }
}
