:root {
  --auth-bg: #1f2524;
  --auth-bg-deep: #171d1c;
  --auth-panel: #242b2a;
  --auth-panel-soft: #2d3433;
  --auth-panel-dark: #1b2120;
  --auth-border: rgba(211, 225, 220, 0.12);
  --auth-border-strong: rgba(211, 225, 220, 0.22);
  --auth-text: #f4f8f6;
  --auth-muted: #aeb9b5;
  --auth-muted-2: #788581;
  --auth-green: #25e885;
  --auth-green-2: #1fcf76;
  --auth-green-dark: #16884e;
  --auth-danger: #ff6767;
  --auth-warning: #ffd36a;
  --auth-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--auth-bg);
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 232, 133, 0.16), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(37, 232, 133, 0.08), transparent 24%),
    linear-gradient(160deg, var(--auth-bg), var(--auth-bg-deep));
  color: var(--auth-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.auth-bg-orb {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.28;
  animation: floatOrb 8s ease-in-out infinite;
}

.auth-bg-orb-one {
  top: 10%;
  left: -90px;
  background: var(--auth-green);
}

.auth-bg-orb-two {
  right: -110px;
  bottom: 12%;
  background: #40ffa2;
  animation-delay: -3s;
}

.auth-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.auth-phone-frame {
  width: 100%;
  max-width: 460px;
  min-height: min(920px, calc(100vh - 36px));
  background: rgba(31, 37, 36, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
}

.auth-phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 16%),
    radial-gradient(circle at 50% 0%, rgba(37, 232, 133, 0.10), transparent 36%);
}

.auth-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  align-items: end;
  height: 82px;
  background: rgba(31, 37, 36, 0.92);
  border-bottom: 1px solid var(--auth-border);
  backdrop-filter: blur(18px);
}

.auth-tab {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0 10px 23px;
  color: #c9d2cf;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease;
}

.auth-tab:hover {
  color: var(--auth-text);
  transform: translateY(-1px);
}

.auth-tab.active {
  color: #ffffff;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 3px;
  background: var(--auth-green);
  box-shadow: 0 0 18px rgba(37, 232, 133, 0.85);
  border-radius: 999px 999px 0 0;
  animation: activeLine 0.45s ease both;
}

.auth-close {
  width: 34px;
  height: 34px;
  margin: 0 16px 17px 0;
  border-radius: 13px;
  background: #333b3a;
  color: #b9c2bf;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.auth-close:hover {
  color: #ffffff;
  background: #3e4746;
  transform: rotate(4deg) scale(1.03);
}

.auth-close svg {
  width: 21px;
  height: 21px;
}

.auth-brand-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px 8px;
  animation: slideUp 0.48s ease both;
}

.auth-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(37, 232, 133, 0.98), rgba(22, 136, 78, 0.88));
  color: #111817;
  box-shadow: 0 16px 34px rgba(37, 232, 133, 0.18);
}

.auth-logo-svg {
  width: 36px;
  height: 36px;
}

.auth-kicker {
  margin: 0 0 2px;
  color: var(--auth-green);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-brand-strip h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-alert {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 26px 0;
  padding: 13px 14px;
  border-radius: 17px;
  color: #ffe5e5;
  background: rgba(255, 103, 103, 0.13);
  border: 1px solid rgba(255, 103, 103, 0.22);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  animation: shakeSoft 0.35s ease both;
}

.auth-alert svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--auth-danger);
}

.auth-form {
  position: relative;
  z-index: 2;
  padding: 17px 26px 0;
}

.auth-field {
  margin-top: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 9px;
  color: #c7d0cd;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.auth-field label span,
.terms-row b {
  color: var(--auth-danger);
}

.auth-field label small {
  color: var(--auth-muted-2);
  font-weight: 800;
}

.auth-input-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid var(--auth-border-strong);
  border-radius: 15px;
  background: rgba(25, 31, 30, 0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.auth-input-wrap:focus-within {
  border-color: rgba(37, 232, 133, 0.74);
  background: rgba(22, 29, 28, 0.9);
  box-shadow: 0 0 0 4px rgba(37, 232, 133, 0.10), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.field-icon {
  width: 22px;
  height: 22px;
  color: #96a29e;
  flex: 0 0 auto;
  transition: color 0.22s ease;
}

.auth-input-wrap:focus-within .field-icon {
  color: var(--auth-green);
}

.auth-input-wrap input {
  width: 100%;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auth-text);
  font-size: 16px;
  font-weight: 800;
  min-width: 0;
}

.auth-input-wrap input::placeholder {
  color: #64716d;
}

.auth-help {
  margin: 9px 0 0;
  color: #8d9995;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 700;
}

.password-wrap {
  padding-right: 8px;
}

.password-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #a7b2ae;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  background: rgba(255,255,255,0.06);
  color: var(--auth-green);
  transform: scale(1.04);
}

.password-toggle svg {
  width: 22px;
  height: 22px;
}

.currency-select {
  position: relative;
}

.currency-trigger {
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--auth-border-strong);
  border-radius: 17px;
  padding: 0 14px;
  background: rgba(25, 31, 30, 0.82);
  color: var(--auth-text);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: 0.22s ease;
}

.currency-trigger:hover,
.currency-trigger.active {
  border-color: rgba(37, 232, 133, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 232, 133, 0.10);
  transform: translateY(-1px);
}

.currency-left {
  display: flex;
  align-items: center;
}

.currency-coin {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 32% 28%, #ffdc82 0%, #ff9f1c 42%, #c86900 100%);
  color: #171d1c;
  font-weight: 1000;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.24);
}

.currency-coin.muted {
  background: #3b4442;
  color: #9ca7a3;
  box-shadow: none;
}

.currency-text {
  text-align: left;
  color: #dce4e1;
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  width: 22px;
  height: 22px;
  color: #aeb9b5;
  transition: transform 0.22s ease;
}

.currency-trigger.active .chevron {
  transform: rotate(180deg);
}

.currency-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow: auto;
  padding: 8px;
  border-radius: 20px;
  background: #252c2b;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  display: none;
  transform-origin: top;
}

.currency-menu.show {
  display: block;
  animation: menuDrop 0.18s ease both;
}

.currency-option {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 10px;
  background: transparent;
  color: var(--auth-text);
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.currency-option:hover,
.currency-option.selected {
  background: rgba(37, 232, 133, 0.10);
}

.currency-option.selected {
  box-shadow: inset 0 0 0 1px rgba(37, 232, 133, 0.22);
}

.currency-option strong {
  display: block;
  font-size: 15px;
  font-weight: 1000;
}

.currency-option small {
  display: block;
  margin-top: 2px;
  color: #8f9b97;
  font-size: 12px;
  font-weight: 800;
}

.field-error {
  display: none;
  margin-top: 8px;
  color: #ffd2d2;
  background: rgba(255,103,103,0.10);
  border: 1px solid rgba(255,103,103,0.18);
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.field-error.show {
  display: block;
}

.bonus-card {
  margin-top: 18px;
  padding: 14px;
  display: flex;
  gap: 13px;
  align-items: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 232, 133, 0.16), rgba(37, 232, 133, 0.05)),
    rgba(45, 52, 51, 0.76);
  border: 1px solid rgba(37, 232, 133, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.bonus-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121918;
  background: var(--auth-green);
  box-shadow: 0 12px 26px rgba(37,232,133,0.22);
  animation: giftPulse 2.4s ease-in-out infinite;
}

.bonus-icon svg {
  width: 25px;
  height: 25px;
}

.bonus-card strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 1000;
}

.bonus-card p {
  margin: 4px 0 0;
  color: #9eaaa6;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 700;
}

.terms-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  color: #c6d0cc;
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 850;
  cursor: pointer;
}

.terms-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fake-check {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 2px solid rgba(37,232,133,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-green);
  background: rgba(37,232,133,0.04);
  transition: 0.2s ease;
}

.fake-check svg {
  width: 21px;
  height: 21px;
  opacity: 0;
  transform: scale(0.5) rotate(-8deg);
  transition: 0.2s ease;
}

.terms-row input:checked + .fake-check {
  background: rgba(37,232,133,0.14);
  border-color: var(--auth-green);
  box-shadow: 0 0 0 4px rgba(37,232,133,0.08);
}

.terms-row input:checked + .fake-check svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.terms-row a {
  color: #ffffff;
  text-decoration-color: var(--auth-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.auth-submit {
  width: 100%;
  height: 62px;
  margin-top: 28px;
  border: 0;
  border-radius: 15px;
  color: #111817;
  background: linear-gradient(135deg, var(--auth-green), var(--auth-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 1000;
  box-shadow: 0 18px 36px rgba(37,232,133,0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  position: relative;
  overflow: hidden;
}

.auth-submit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-16deg);
  animation: buttonShine 3.8s ease-in-out infinite;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(37,232,133,0.28);
  filter: saturate(1.08);
}

.auth-submit:disabled {
  opacity: 0.76;
  cursor: not-allowed;
  transform: none;
}

.auth-submit svg {
  width: 21px;
  height: 21px;
}

.auth-submit.loading svg {
  display: none;
}

.auth-footer-note {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 26px 26px 14px;
  color: #b8c2be;
  font-size: 14px;
  font-weight: 900;
}

.auth-footer-note span {
  height: 1px;
  background: rgba(255,255,255,0.09);
}

.auth-footer-note p {
  margin: 0;
}

.auth-secondary-btn {
  position: relative;
  z-index: 2;
  margin: 0 26px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #303837;
  border: 1px solid rgba(255,255,255,0.08);
  color: #eff5f3;
  text-decoration: none;
  font-size: 16px;
  font-weight: 1000;
  transition: 0.2s ease;
}

.auth-secondary-btn:hover {
  border-color: rgba(37,232,133,0.32);
  transform: translateY(-1px);
}

.auth-secondary-btn svg {
  width: 22px;
  height: 22px;
  color: var(--auth-green);
}

.site-pill {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 52px);
  margin: 28px auto 24px;
  padding: 11px 28px;
  border-radius: 999px;
  background: rgba(48, 56, 55, 0.78);
  border: 1px solid rgba(255,255,255,0.09);
  color: #dfe8e5;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.reveal-item {
  animation: slideUp 0.45s ease both;
}

.reveal-item:nth-child(1) { animation-delay: 0.04s; }
.reveal-item:nth-child(2) { animation-delay: 0.08s; }
.reveal-item:nth-child(3) { animation-delay: 0.12s; }
.reveal-item:nth-child(4) { animation-delay: 0.16s; }
.reveal-item:nth-child(5) { animation-delay: 0.20s; }
.reveal-item:nth-child(6) { animation-delay: 0.24s; }
.reveal-item:nth-child(7) { animation-delay: 0.28s; }
.reveal-item:nth-child(8) { animation-delay: 0.32s; }
.reveal-item:nth-child(9) { animation-delay: 0.36s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes activeLine {
  from {
    transform: scaleX(0.2);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0,0,0) scale(1);
  }
  50% {
    transform: translate3d(18px,-18px,0) scale(1.08);
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes giftPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06) rotate(-2deg);
  }
}

@keyframes buttonShine {
  0%, 55% {
    left: -45%;
  }
  72%, 100% {
    left: 125%;
  }
}

@keyframes shakeSoft {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

@media (min-width: 900px) {
  .auth-screen {
    padding: 28px;
  }

  .auth-phone-frame {
    max-width: 500px;
  }
}

@media (max-width: 520px) {
  body.auth-page {
    background: var(--auth-bg);
  }

  .auth-screen {
    padding: 0;
    align-items: stretch;
  }

  .auth-phone-frame {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .auth-header {
    height: 76px;
  }

  .auth-tab {
    font-size: 18px;
    padding-bottom: 21px;
  }

  .auth-brand-strip,
  .auth-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-alert {
    margin-left: 20px;
    margin-right: 20px;
  }

  .auth-footer-note {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-secondary-btn {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 360px) {
  .auth-brand-strip h1 {
    font-size: 17px;
  }

  .auth-field label,
  .currency-text,
  .auth-input-wrap input {
    font-size: 14px;
  }

  .auth-form,
  .auth-brand-strip {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =========================================================
   REGISTER FIXES: brand icon, full-width brand strip, dark overlay currency menu
   ========================================================= */

.auth-brand-full {
  display: block;
  padding: 20px 26px 8px;
}

.auth-brand-logo-panel {
  width: 100%;
  min-height: 92px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background:
    radial-gradient(circle at 16% 22%, rgba(37, 232, 133, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(45, 52, 51, 0.92), rgba(24, 31, 30, 0.92));
  border: 1px solid rgba(37, 232, 133, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}

.auth-brand-logo-panel::after {
  content: "";
  position: absolute;
  inset: -50% auto auto -40%;
  width: 80%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(18deg);
  animation: brandSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.auth-brand-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 24px rgba(37, 232, 133, 0.24));
  animation: logoFloat 3.6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.auth-brand-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.auth-brand-copy .auth-kicker {
  margin-bottom: 4px;
}

.auth-brand-copy h1 {
  font-size: 20px;
  line-height: 1.18;
}

.currency-select {
  position: relative;
  z-index: 4;
}

.currency-select.open {
  z-index: 1005;
}

.currency-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(7, 11, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.currency-backdrop.show {
  display: block;
  animation: fadeIn 0.16s ease both;
}

.currency-trigger {
  position: relative;
  z-index: 1003;
  background:
    radial-gradient(circle at 12% 50%, rgba(37, 232, 133, 0.08), transparent 28%),
    #151c1b;
  border-color: rgba(255,255,255,0.13);
}

.currency-select.open .currency-trigger {
  border-color: rgba(37, 232, 133, 0.82);
  box-shadow:
    0 0 0 4px rgba(37, 232, 133, 0.12),
    0 12px 26px rgba(0,0,0,0.32);
}

.currency-menu {
  z-index: 1002;
  max-height: 345px;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 232, 133, 0.12), transparent 30%),
    #101716;
  border: 1px solid rgba(37, 232, 133, 0.22);
  box-shadow:
    0 34px 90px rgba(0,0,0,0.72),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.currency-menu::-webkit-scrollbar {
  width: 7px;
}

.currency-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.currency-menu::-webkit-scrollbar-thumb {
  background: rgba(37,232,133,0.48);
  border-radius: 999px;
}

.currency-option {
  background: rgba(255,255,255,0.02);
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.currency-option:last-child {
  margin-bottom: 0;
}

.currency-option:hover,
.currency-option.selected {
  background: rgba(37, 232, 133, 0.14);
  border-color: rgba(37, 232, 133, 0.26);
}

.currency-coin {
  background: linear-gradient(135deg, var(--auth-green), #0f8f52);
  color: #07110d;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 20px rgba(37,232,133,0.18);
}

.currency-option .currency-coin {
  background: #18211f;
  color: var(--auth-green);
  box-shadow: inset 0 0 0 1px rgba(37,232,133,0.22);
}

.currency-coin.muted {
  background: #18211f;
  color: #8f9b97;
}

body.currency-open {
  overflow: hidden;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.035);
  }
}

@keyframes brandSweep {
  0%, 55% {
    transform: translateX(-30%) rotate(18deg);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(210%) rotate(18deg);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 520px) {
  .auth-brand-full {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-brand-logo-panel {
    min-height: 88px;
    border-radius: 20px;
    padding: 14px;
  }

  .auth-brand-icon {
    width: 58px;
    height: 58px;
  }

  .auth-brand-copy h1 {
    font-size: 18px;
  }

  .currency-select.open .currency-menu {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 50%;
    max-height: min(430px, 68vh);
    transform: translateY(-50%);
    border-radius: 24px;
  }

  .currency-menu.show {
    animation: currencyModalDrop 0.22s ease both;
  }
}

@media (max-width: 360px) {
  .auth-brand-logo-panel {
    gap: 12px;
  }

  .auth-brand-icon {
    width: 52px;
    height: 52px;
  }

  .auth-brand-copy h1 {
    font-size: 16px;
  }
}

@keyframes currencyModalDrop {
  from {
    opacity: 0;
    transform: translateY(calc(-50% - 12px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}
/* ================================
   REGISTER FULL WIDTH FIX
================================ */

.auth-screen {
  width: 100%;
  min-height: 100vh;
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.auth-phone-frame {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-header,
.auth-brand-strip,
.auth-form,
.auth-footer-note,
.auth-secondary-btn,
.site-pill {
  width: 100%;
}

.auth-form,
.auth-brand-strip {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.auth-footer-note {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.auth-secondary-btn {
  max-width: 588px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ================================
   LOGO / ICON FULL WIDTH STYLE
================================ */

.auth-logo-wrap {
  width: 100% !important;
  min-height: 82px !important;
  border-radius: 22px !important;
  justify-content: flex-start !important;
  padding: 14px 18px !important;
  background:
    linear-gradient(135deg, rgba(37, 232, 133, 0.22), rgba(22, 136, 78, 0.12)),
    rgba(25, 31, 30, 0.88) !important;
  border: 1px solid rgba(37, 232, 133, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.auth-logo-wrap img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.auth-brand-strip {
  display: block !important;
}

.auth-brand-strip > div:last-child {
  margin-top: 12px;
}

/* ================================
   DARK GREEN CURRENCY DROPDOWN
================================ */

.currency-select {
  position: relative;
  z-index: 80;
}

.currency-trigger {
  background:
    linear-gradient(135deg, #143c2d, #0b241b) !important;
  border-color: rgba(37, 232, 133, 0.28) !important;
}

.currency-trigger:hover,
.currency-trigger.active {
  background:
    linear-gradient(135deg, #18563d, #0d2e22) !important;
  border-color: rgba(37, 232, 133, 0.85) !important;
  box-shadow:
    0 0 0 4px rgba(37, 232, 133, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.35) !important;
}

.currency-menu {
  z-index: 9999 !important;
  background:
    linear-gradient(180deg, #123b2b, #081f18) !important;
  border: 1px solid rgba(37, 232, 133, 0.28) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.72),
    0 0 0 9999px rgba(0, 0, 0, 0.46) !important;
  max-height: 360px !important;
}

.currency-option {
  background: rgba(255,255,255,0.025) !important;
  color: #f4fff9 !important;
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 7px;
}

.currency-option:last-child {
  margin-bottom: 0;
}

.currency-option:hover,
.currency-option.selected {
  background:
    linear-gradient(135deg, rgba(37, 232, 133, 0.22), rgba(37, 232, 133, 0.08)) !important;
  border-color: rgba(37, 232, 133, 0.35) !important;
}

.currency-option small {
  color: #a8bbb3 !important;
}

.currency-coin {
  background:
    radial-gradient(circle at 32% 28%, #4dffad 0%, #23ec89 46%, #119456 100%) !important;
  color: #07120e !important;
  box-shadow: 0 8px 22px rgba(37, 232, 133, 0.25) !important;
}

.currency-coin.muted {
  background: #163829 !important;
  color: #8ff5bd !important;
}
/* =========================================
   CURRENCY DROPDOWN PUSH-DOWN FIX
   Add this at bottom of assets/css/auth.css
========================================= */

.currency-select {
  position: relative !important;
  z-index: 5 !important;
}

/* Trigger stays full width and dark green */
.currency-trigger {
  background:
    linear-gradient(135deg, #103f2d, #071f17) !important;
  border: 1px solid rgba(35, 236, 137, 0.35) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 28px rgba(0,0,0,0.22) !important;
}

.currency-trigger.active {
  background:
    linear-gradient(135deg, #14583c, #08261c) !important;
  border-color: rgba(35, 236, 137, 0.85) !important;
}

/* IMPORTANT:
   Dropdown is no longer absolute/overlay.
   It now opens in normal page flow and pushes content down.
*/
.currency-menu {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: auto !important;

  display: block !important;
  width: 100% !important;

  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;

  margin-top: 0 !important;
  padding: 0 8px !important;

  background:
    linear-gradient(180deg, #123d2c, #071f17) !important;
  border: 1px solid rgba(35, 236, 137, 0.22) !important;
  border-radius: 20px !important;

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;

  transform: none !important;
  transform-origin: top !important;

  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    margin-top 0.24s ease,
    padding 0.24s ease !important;
}

/* Open state */
.currency-select.open .currency-menu,
.currency-menu.show {
  max-height: 430px !important;
  opacity: 1 !important;
  overflow-y: auto !important;
  margin-top: 12px !important;
  padding: 8px !important;
}

/* Dark green scrollbar */
.currency-menu::-webkit-scrollbar {
  width: 6px;
}

.currency-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.currency-menu::-webkit-scrollbar-thumb {
  background: rgba(35, 236, 137, 0.65);
  border-radius: 999px;
}

/* Currency option style */
.currency-option {
  min-height: 66px !important;
  margin-bottom: 8px !important;
  border-radius: 17px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)) !important;
  border: 1px solid rgba(255,255,255,0.055) !important;
  color: #f5fff9 !important;
}

.currency-option:last-child {
  margin-bottom: 0 !important;
}

.currency-option:hover,
.currency-option.selected {
  background:
    linear-gradient(135deg, rgba(35, 236, 137, 0.20), rgba(35, 236, 137, 0.08)) !important;
  border-color: rgba(35, 236, 137, 0.38) !important;
}

.currency-option strong {
  color: #ffffff !important;
}

.currency-option small {
  color: #aebdb7 !important;
}

/* GOLD CURRENCY ICONS */
.currency-coin {
  background:
    radial-gradient(circle at 30% 24%, #fff4b8 0%, #ffd66b 28%, #d99a16 62%, #8a5700 100%) !important;
  color: #151008 !important;
  border: 1px solid rgba(255, 224, 129, 0.55) !important;
  box-shadow:
    0 9px 22px rgba(255, 190, 61, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.40) !important;
  font-weight: 1000 !important;
}

/* Placeholder icon also gold/dark */
.currency-coin.muted {
  background:
    radial-gradient(circle at 30% 24%, #fff4b8 0%, #ffd66b 28%, #b77b10 70%, #5c3b05 100%) !important;
  color: #151008 !important;
  box-shadow:
    0 9px 22px rgba(255, 190, 61, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

/* Remove any old overlay/backdrop effect */
.currency-menu::before,
.currency-menu::after {
  display: none !important;
}

/* =========================================
   LOGIN PAGE MATCHING AUTH THEME
   Add this at bottom of assets/css/auth.css
========================================= */

.auth-page-login .auth-form {
  padding-top: 22px;
}

.auth-brand-login .auth-logo-wrap {
  width: 100% !important;
  min-height: 82px !important;
  border-radius: 22px !important;
  justify-content: flex-start !important;
  padding: 14px 18px !important;
  background:
    linear-gradient(135deg, rgba(37, 232, 133, 0.22), rgba(22, 136, 78, 0.12)),
    rgba(25, 31, 30, 0.88) !important;
  border: 1px solid rgba(37, 232, 133, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.auth-brand-login .auth-logo-wrap img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.auth-brand-login {
  display: block !important;
}

.auth-brand-login > div:last-child {
  margin-top: 12px;
}

.login-mode-tabs {
  width: 100%;
  min-height: 62px;
  padding: 5px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.login-mode {
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #b5c0bc;
  background: transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
  transition: 0.22s ease;
}

.login-mode svg {
  width: 21px;
  height: 21px;
}

.login-mode.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045));
  box-shadow:
    0 10px 28px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.login-mode-muted:hover {
  color: var(--auth-green);
  background: rgba(37, 232, 133, 0.08);
}

.login-actions {
  margin-top: 13px;
  display: flex;
  justify-content: flex-end;
}

.forgot-link {
  color: #cbd5d1;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 1000;
  transition: 0.2s ease;
}

.forgot-link:hover {
  color: var(--auth-green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.auth-page-login .auth-submit {
  margin-top: 34px;
}

.auth-secondary-signup svg {
  color: var(--auth-green);
}

.auth-page-login .auth-help {
  color: #8f9b97;
}

@media (max-width: 420px) {
  .login-mode {
    font-size: 13.5px;
    gap: 7px;
  }

  .login-mode svg {
    width: 19px;
    height: 19px;
  }

  .forgot-link {
    font-size: 14px;
  }
}
/* =========================================
   FORGOT PASSWORD PAGE ADD-ON
   Add this at bottom of assets/css/auth.css
========================================= */

.auth-page-forgot .auth-phone-frame {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.auth-page-forgot .auth-screen {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.auth-page-forgot .auth-brand-full,
.auth-page-forgot .auth-form,
.auth-page-forgot .auth-footer-note {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.auth-page-forgot .auth-secondary-btn {
  max-width: 588px;
  margin-left: auto;
  margin-right: auto;
}

.auth-success {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 26px 0;
  padding: 13px 14px;
  border-radius: 17px;
  color: #d8ffec;
  background: rgba(37, 232, 133, 0.13);
  border: 1px solid rgba(37, 232, 133, 0.23);
  font-weight: 850;
  font-size: 14px;
  line-height: 1.35;
  animation: slideUp 0.32s ease both;
}

.auth-success svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--auth-green);
}

.auth-reset-tabs {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 58px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(48, 56, 55, 0.78);
  border: 1px solid rgba(255,255,255,0.06);
}

.auth-reset-tab {
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #9daaa5;
  font-size: 14px;
  font-weight: 1000;
  transition: 0.22s ease;
}

.auth-reset-tab svg {
  width: 20px;
  height: 20px;
}

.auth-reset-tab.active {
  color: #ecfff7;
  background: linear-gradient(135deg, rgba(37, 232, 133, 0.16), rgba(37, 232, 133, 0.06));
  box-shadow: inset 0 0 0 1px rgba(37,232,133,0.18);
}

.auth-reset-tab.done {
  color: var(--auth-green);
}

.forgot-form {
  padding-top: 24px;
}

.reset-email-pill {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(25, 31, 30, 0.78);
  border: 1px solid rgba(37, 232, 133, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dce8e3;
  font-weight: 900;
  overflow: hidden;
}

.reset-email-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reset-email-pill a {
  color: var(--auth-green);
  text-decoration: none;
  flex: 0 0 auto;
  font-weight: 1000;
}

.forgot-done-icon {
  width: 86px;
  height: 86px;
  margin: 38px auto 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-green);
  border: 3px solid rgba(37,232,133,0.75);
  box-shadow: 0 0 0 10px rgba(37,232,133,0.06), 0 18px 40px rgba(0,0,0,0.32);
}

.forgot-done-icon svg {
  width: 42px;
  height: 42px;
}

.forgot-login-btn {
  text-decoration: none;
}

.auth-page-forgot .auth-logo-wrap img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

@media (max-width: 520px) {
  .auth-page-forgot .auth-success {
    margin-left: 20px;
    margin-right: 20px;
  }

  .auth-reset-tab {
    font-size: 13px;
  }
}
