@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

.nt-auth {
  --nt-pink: #e91e8c;
  --nt-pink-dark: #c41874;
  --nt-ink: #1a1a1a;
  --nt-muted: #6b6b68;
  --nt-line: #d5d5ce;
  --nt-bg: #f7f4f6;
  --nt-white: #ffffff;

  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(233, 30, 140, 0.22), transparent 55%),
    rgba(18, 10, 16, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'DM Sans', Roboto, 'Segoe UI', sans-serif;
  animation: nt-auth-fade 0.22s ease-out;
}

.nt-auth[hidden] {
  display: none !important;
}

@keyframes nt-auth-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nt-auth-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nt-auth__panel {
  width: min(420px, 100%);
  margin: auto;
  background: var(--nt-white);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 56px rgba(0, 0, 0, 0.22);
  padding: 0;
  position: relative;
  color: var(--nt-ink);
  overflow: hidden;
  animation: nt-auth-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nt-auth__accent {
  height: 4px;
  background: linear-gradient(90deg, #ff7eb9, var(--nt-pink) 55%, #7b1fa2);
}

.nt-auth__body {
  padding: 32px 32px 28px;
}

.nt-auth__brand {
  display: block;
  margin: 0 0 18px;
  line-height: 1;
}

.nt-auth__logo-text {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--nt-ink);
}

.nt-auth__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--nt-bg);
  color: var(--nt-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nt-auth__close:hover {
  background: #efe8ec;
  color: var(--nt-ink);
  transform: scale(1.04);
}

.nt-auth__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.nt-auth__lead {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--nt-muted);
}

.nt-auth__field {
  display: block;
  margin-bottom: 14px;
}

.nt-auth__field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3f3f3c;
}

.nt-auth__input-wrap {
  position: relative;
}

.nt-auth__input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9a9a96;
  pointer-events: none;
  transition: color 0.15s ease;
}

.nt-auth__field input {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 44px;
  border: 1.5px solid var(--nt-line);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--nt-ink);
  background: var(--nt-bg);
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nt-auth__field input::placeholder {
  color: #9a9a96;
}

.nt-auth__field input:hover {
  border-color: #bdbdb6;
}

.nt-auth__field input:focus {
  outline: none;
  border-color: var(--nt-pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.14);
}

.nt-auth__input-wrap:focus-within svg {
  color: var(--nt-pink);
}

.nt-auth__field input.is-invalid {
  border-color: var(--nt-pink);
  background: #fff5fa;
  box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

.nt-auth__error {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nt-pink-dark);
}

.nt-auth__error[hidden] {
  display: none !important;
}

.nt-auth__submit {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f43ea0 0%, var(--nt-pink) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(233, 30, 140, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.nt-auth__submit:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 26px rgba(233, 30, 140, 0.34);
  transform: translateY(-1px);
}

.nt-auth__submit:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.nt-auth__hint {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #8a8a86;
}

.nt-auth__perk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 14px 0 0;
  padding: 10px 12px 10px 10px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.4;
  color: #3d3d3a;
  background: linear-gradient(105deg, #fff7fb 0%, #fffdf8 100%);
  border: 1px solid #f0d7e4;
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--nt-pink);
}

.nt-auth__perk-badge {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--nt-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1;
  box-shadow: 0 4px 0 rgba(196, 24, 116, 0.18);
}

.nt-auth__perk-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 140px;
  min-width: 0;
  font-weight: 600;
}

.nt-auth__perk-text small {
  font-size: 11px;
  font-weight: 500;
  color: #8a8a86;
}

.nt-auth__perk-timer {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(233, 30, 140, 0.06);
  border: 1px solid rgba(233, 30, 140, 0.12);
}

.nt-auth__perk-timer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e6e6a;
}

.nt-auth__perk-timer-digits {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.nt-auth__perk-timer-digits b {
  min-width: 1.55em;
  padding: 3px 4px;
  border-radius: 4px;
  background: var(--nt-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.nt-auth__perk-timer-digits i {
  font-style: normal;
  font-weight: 800;
  color: var(--nt-pink);
  font-size: 11px;
  padding: 0 1px;
}

body.nt-auth-open {
  overflow: hidden;
}

/* Floating coupon reminder (bottom-right) */
.nt-coupon-fab {
  --nt-pink: #e91e8c;
  --nt-pink-dark: #c41874;
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 9040;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: calc(100vw - 28px);
  font-family: 'DM Sans', Roboto, 'Segoe UI', sans-serif;
  animation: nt-coupon-fab-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 10px 22px rgba(196, 24, 116, 0.28));
}

.nt-coupon-fab[hidden] {
  display: none !important;
}

@keyframes nt-coupon-fab-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nt-coupon-fab__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(120deg, #ff4fa3 0%, var(--nt-pink) 48%, #9c1a7a 100%);
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  line-height: 1.15;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 0 rgba(140, 18, 90, 0.18);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.nt-coupon-fab__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.nt-coupon-fab__btn:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

.nt-coupon-fab__badge {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 8px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--nt-pink-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.nt-coupon-fab__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nt-coupon-fab__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nt-coupon-fab__sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.92;
  white-space: nowrap;
}

.nt-coupon-fab__timer {
  flex: 0 0 auto;
  margin-left: 2px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nt-coupon-fab__dismiss {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0.92;
}

.nt-coupon-fab__dismiss:hover {
  opacity: 1;
}

/* Collapsed mini chip after dismiss */
.nt-coupon-fab.is-mini .nt-coupon-fab__copy,
.nt-coupon-fab.is-mini .nt-coupon-fab__timer,
.nt-coupon-fab.is-mini .nt-coupon-fab__dismiss {
  display: none;
}

.nt-coupon-fab.is-mini .nt-coupon-fab__btn {
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 6px 0 rgba(140, 18, 90, 0.16);
}

.nt-coupon-fab.is-mini .nt-coupon-fab__badge {
  min-width: 48px;
  padding: 12px 10px;
  font-size: 14px;
  animation: nt-coupon-fab-pulse 2.4s ease-in-out infinite;
}

@keyframes nt-coupon-fab-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

body.nt-auth-open .nt-coupon-fab,
body.nt-wa-open .nt-coupon-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@media (max-width: 480px) {
  .nt-coupon-fab {
    right: 12px;
    bottom: 14px;
  }

  .nt-coupon-fab__sub {
    display: none;
  }

  .nt-coupon-fab__btn {
    padding: 9px 10px 9px 9px;
    gap: 8px;
  }
}
