:root {
  --gp-auth-bg-0: #030715;
  --gp-auth-bg-1: #07111f;
  --gp-auth-card: rgba(12, 16, 31, 0.92);
  --gp-auth-card-2: rgba(18, 23, 42, 0.86);
  --gp-auth-border: rgba(148, 163, 184, 0.18);
  --gp-auth-border-strong: rgba(148, 163, 184, 0.28);
  --gp-auth-text: #f8fafc;
  --gp-auth-muted: #9ca3af;
  --gp-auth-dim: #6b7280;
  --gp-auth-cyan: #19d7ff;
  --gp-auth-cyan-soft: rgba(25, 215, 255, 0.22);
  --gp-auth-danger: #ff5f7a;
  --gp-auth-ok: #37f2a4;
}

body.gp-prime-auth-open {
  overflow: hidden !important;
}

.gp-prime-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  color: var(--gp-auth-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(27, 124, 212, 0.22), transparent 34%),
    radial-gradient(circle at 86% 24%, rgba(15, 33, 82, 0.32), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(9, 21, 61, 0.46), transparent 44%),
    linear-gradient(180deg, var(--gp-auth-bg-0), #050715 46%, #080a1a);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-y: auto;
}

.gp-prime-auth-card {
  position: relative;
  width: min(92vw, 680px);
  margin: auto;
  padding: clamp(28px, 5vw, 48px) clamp(22px, 5vw, 42px) clamp(26px, 4.4vw, 42px);
  border: 1px solid var(--gp-auth-border);
  border-radius: clamp(28px, 5vw, 44px);
  background:
    linear-gradient(145deg, rgba(13, 22, 38, 0.92), rgba(9, 11, 26, 0.94) 46%, rgba(12, 12, 32, 0.93)),
    var(--gp-auth-card);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.gp-prime-auth-card::before {
  content: "";
  position: absolute;
  inset: -120px -70px auto auto;
  width: 280px;
  height: 280px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(25, 215, 255, 0.14), transparent 66%);
  filter: blur(1px);
}

.gp-prime-auth-card::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -90px;
  width: 300px;
  height: 300px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(63, 92, 255, 0.14), transparent 68%);
}

.gp-prime-auth-inner {
  position: relative;
  z-index: 2;
}

.gp-prime-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.72);
  background: rgba(15, 23, 42, 0.64);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gp-prime-auth-close:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(25, 215, 255, 0.42);
}

.gp-prime-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 2px auto 34px;
  text-align: left;
}

.gp-prime-auth-logoBox {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(9, 12, 28, 0.92)),
    rgba(10, 14, 27, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 34px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(25, 215, 255, 0.08);
  overflow: hidden;
}

.gp-prime-auth-logoBox img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(25, 215, 255, 0.2));
}

.gp-prime-auth-wordmark strong {
  display: block;
  color: #ffffff;
  font-size: clamp(25px, 5vw, 35px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.gp-prime-auth-wordmark strong span {
  color: var(--gp-auth-cyan);
}

.gp-prime-auth-wordmark small {
  display: block;
  margin-top: 9px;
  color: rgba(156, 163, 175, 0.88);
  font-size: clamp(11px, 2.4vw, 14px);
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.gp-prime-auth-head {
  margin: 0 auto 30px;
  text-align: center;
}

.gp-prime-auth-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.gp-prime-auth-head p {
  margin: 18px auto 0;
  max-width: 530px;
  color: rgba(203, 213, 225, 0.76);
  font-size: clamp(17px, 3vw, 22px);
  line-height: 1.45;
  font-weight: 500;
}

.gp-prime-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(100%, 420px);
  margin: -10px auto 28px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
}

.gp-prime-auth-tabs button {
  border: 0;
  border-radius: 13px;
  padding: 12px 14px;
  color: rgba(203, 213, 225, 0.72);
  background: transparent;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gp-prime-auth-tabs button.is-active {
  color: #08111f;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.08);
}

.gp-prime-auth-form {
  display: grid;
  gap: 20px;
}

.gp-prime-auth-field {
  display: grid;
  gap: 9px;
}

.gp-prime-auth-field label {
  display: block;
  color: rgba(203, 213, 225, 0.76);
  font-size: clamp(13px, 2.7vw, 18px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gp-prime-auth-inputWrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(64px, 11vw, 82px);
  border: 1px solid var(--gp-auth-border-strong);
  border-radius: clamp(20px, 4vw, 25px);
  background: rgba(21, 25, 42, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gp-prime-auth-inputWrap:focus-within {
  border-color: rgba(25, 215, 255, 0.62);
  background: rgba(20, 28, 50, 0.92);
  box-shadow: 0 0 0 4px rgba(25, 215, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gp-prime-auth-ico {
  display: grid;
  place-items: center;
  width: 66px;
  min-width: 66px;
  color: rgba(148, 163, 184, 0.72);
}

.gp-prime-auth-ico svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-prime-auth-inputWrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
  font: inherit;
  font-size: clamp(18px, 3.2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  caret-color: var(--gp-auth-cyan);
}

.gp-prime-auth-inputWrap input::placeholder {
  color: rgba(148, 163, 184, 0.38);
}

.gp-prime-auth-eye {
  display: grid;
  place-items: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  margin-right: 8px;
  border: 0;
  color: rgba(148, 163, 184, 0.68);
  background: transparent;
  cursor: pointer;
}

.gp-prime-auth-eye svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-prime-auth-message {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 95, 122, 0.28);
  border-radius: 16px;
  color: #ffd3dc;
  background: rgba(255, 95, 122, 0.09);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.gp-prime-auth-message.is-visible {
  display: flex;
}

.gp-prime-auth-message.is-ok {
  border-color: rgba(55, 242, 164, 0.28);
  color: #c9ffe7;
  background: rgba(55, 242, 164, 0.08);
}

.gp-prime-auth-submit,
.gp-prime-auth-secondaryAction {
  width: 100%;
  min-height: clamp(66px, 11vw, 82px);
  border: 0;
  border-radius: clamp(20px, 4vw, 24px);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.gp-prime-auth-submit {
  margin-top: 10px;
  color: #050505;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.08);
  font-size: clamp(19px, 3.4vw, 25px);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gp-prime-auth-submit span {
  margin-left: 10px;
  font-size: 1.25em;
  line-height: 0;
  vertical-align: -0.05em;
}

.gp-prime-auth-secondaryAction {
  display: none;
  margin-top: -6px;
  border: 1px solid rgba(25, 215, 255, 0.28);
  color: #dff9ff;
  background: rgba(25, 215, 255, 0.08);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gp-prime-auth-secondaryAction.is-visible {
  display: block;
}

.gp-prime-auth-submit:hover,
.gp-prime-auth-secondaryAction:hover {
  transform: translateY(-1px);
}

.gp-prime-auth-submit:disabled,
.gp-prime-auth-secondaryAction:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.gp-prime-auth-bottom {
  margin: 28px 0 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 500;
  text-align: center;
}

.gp-prime-auth-bottom button {
  border: 0;
  padding: 0;
  color: var(--gp-auth-cyan);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.gp-prime-auth-fineprint {
  margin: 14px auto 0;
  max-width: 520px;
  color: rgba(148, 163, 184, 0.62);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 560px) {
  .gp-prime-auth-overlay {
    align-items: start;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .gp-prime-auth-card {
    width: min(92vw, 390px);
    padding: 40px 22px 28px;
    border-radius: 30px;
  }

  .gp-prime-auth-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .gp-prime-auth-brand {
    gap: 13px;
    margin-bottom: 30px;
  }

  .gp-prime-auth-logoBox {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .gp-prime-auth-logoBox img {
    width: 44px;
    height: 44px;
  }

  .gp-prime-auth-head h2 {
    font-size: 42px;
  }

  .gp-prime-auth-head p {
    font-size: 17px;
  }

  .gp-prime-auth-field {
    gap: 7px;
  }

  .gp-prime-auth-form {
    gap: 17px;
  }

  .gp-prime-auth-ico {
    width: 52px;
    min-width: 52px;
  }

  .gp-prime-auth-eye {
    width: 48px;
    min-width: 48px;
  }
}

@media (max-width: 380px) {
  .gp-prime-auth-card {
    width: min(94vw, 360px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .gp-prime-auth-wordmark strong {
    font-size: 22px;
  }

  .gp-prime-auth-wordmark small {
    letter-spacing: 0.32em;
  }

  .gp-prime-auth-head h2 {
    font-size: 36px;
  }
}
