:root {
  --prox-auth-accent: #ffd700;
  --prox-auth-magenta: #d633ff;
  --prox-auth-bg: #080812;
  --prox-auth-muted: #aaaabd;
}

.prox-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 10, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.prox-auth-overlay.is-open { display: flex; }

.prox-auth-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: min(760px, calc(100dvh - 32px));
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid rgba(255, 215, 0, .28);
  border-radius: 28px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 215, 0, .08), transparent 38%),
    linear-gradient(325deg, rgba(214, 51, 255, .1), transparent 42%),
    rgba(8, 8, 18, .98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
  font-family: Poppins, Inter, system-ui, sans-serif;
}

.prox-auth-dialog::-webkit-scrollbar { display: none; }

.prox-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 22px;
  line-height: 1;
}

.prox-auth-brand {
  width: min(210px, 62%);
  height: 70px;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
}

.prox-auth-kicker {
  margin: 0 0 8px;
  color: var(--prox-auth-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.prox-auth-title {
  margin: 0;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.02;
  font-weight: 900;
  text-align: center;
}

.prox-auth-reason {
  margin: 12px auto 22px;
  max-width: 340px;
  color: var(--prox-auth-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.prox-auth-form { display: grid; gap: 12px; }

.prox-auth-field {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  outline: none;
  padding: 13px 15px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  font: inherit;
}

.prox-auth-field:focus {
  border-color: var(--prox-auth-accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .11);
}

.prox-auth-field::placeholder { color: rgba(255, 255, 255, .42); }

.prox-auth-submit,
.prox-auth-google {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 900;
}

.prox-auth-submit {
  color: #070709;
  background: linear-gradient(135deg, #ffd700, #ff9d00);
}

.prox-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  color: #080810;
  background: #fff;
}

.prox-auth-google img { width: 20px; height: 20px; }

.prox-auth-submit:disabled,
.prox-auth-google:disabled { cursor: wait; opacity: .68; }

.prox-auth-error {
  min-height: 18px;
  margin: 0;
  color: #ff7888;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.prox-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0 2px;
  color: #77778b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.prox-auth-divider::before,
.prox-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .1);
}

.prox-auth-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 12px;
}

.prox-auth-links a {
  color: var(--prox-auth-accent);
  font-weight: 800;
  text-decoration: none;
}

.prox-auth-status {
  display: none;
  margin-bottom: 13px;
  border: 1px solid rgba(255, 215, 0, .18);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 215, 0, .07);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.prox-auth-status.is-visible { display: block; }

body.prox-auth-locked { overflow: hidden !important; }

@media (max-width: 520px) {
  .prox-auth-overlay { align-items: flex-end; padding: 0; }
  .prox-auth-dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
  }
}
