/* GLOBALBP — sign-in screen. Standalone: styles.css stays behind the gate. */

:root {
  --ink: #050405;
  --red: #ff2b2b;
  --red-hot: #ff5252;
  --text: #f7f0f1;
  --muted: #a2949a;
  --dim: #6f6268;
  --line: rgba(255, 72, 72, 0.16);
  --line-2: rgba(255, 72, 72, 0.34);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

::selection { background: rgba(255, 43, 43, 0.35); }

/* cursor light ------------------------------------------------------------ */

.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.fx__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(255, 70, 70, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 70, 70, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 75%);
}

.fx__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  transform: translate3d(50vw, 40vh, 0) translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 48, 48, 0.28) 0%,
    rgba(255, 30, 30, 0.15) 24%,
    rgba(200, 10, 10, 0.07) 46%,
    transparent 72%
  );
  filter: blur(22px);
  mix-blend-mode: screen;
  will-change: transform;
}

.fx__core {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate3d(50vw, 40vh, 0) translate(-50%, -50%);
  background: #ff3131;
  box-shadow:
    0 0 14px 4px rgba(255, 48, 48, 0.85),
    0 0 52px 20px rgba(255, 24, 24, 0.32),
    0 0 130px 60px rgba(255, 0, 0, 0.13);
  will-change: transform;
}

.fx__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 40, 40, 0.1), transparent 45%),
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.86) 100%);
}

/* card -------------------------------------------------------------------- */

.auth {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

.auth__card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px 28px;
  background: linear-gradient(180deg, rgba(28, 14, 17, 0.86), rgba(9, 6, 7, 0.92));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 50px 90px -50px #000,
    0 0 90px -40px rgba(255, 40, 40, 0.55);
  overflow: hidden;
  text-align: center;
  animation: cardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.auth__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 70, 70, 0.7), transparent);
}

.auth__mark {
  width: 118px;
  height: 118px;
  object-fit: contain;
  margin: 0 auto 6px;
  filter: drop-shadow(0 18px 44px rgba(255, 20, 20, 0.5));
  animation: markBob 8s ease-in-out infinite;
}

@keyframes markBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.auth__brand span { color: var(--red); }

.auth__title {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth__lede {
  margin: 0 auto 26px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.auth__form { text-align: left; }

.field { margin-bottom: 14px; }

.field__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input:focus {
  outline: none;
  border-color: rgba(255, 72, 72, 0.7);
  background: rgba(255, 45, 45, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.14);
}

.input:autofill,
.input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 60px #1a0d10 inset;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, opacity 0.2s ease;
}

.btn--primary {
  margin-top: 6px;
  background: linear-gradient(180deg, #ff3d3d, #c00c0c);
  color: #fff;
  box-shadow: 0 14px 34px -16px rgba(255, 35, 35, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px -16px rgba(255, 45, 45, 1), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn:disabled { opacity: 0.62; cursor: progress; transform: none; }

.btn__label { display: inline-flex; align-items: center; gap: 9px; }

.auth__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 72, 72, 0.4);
  border-radius: 9px;
  background: rgba(255, 45, 45, 0.1);
  color: #ffb3b3;
  font-size: 0.82rem;
  animation: shake 0.32s ease;
}

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

.auth__foot {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 420px) {
  .auth__card { padding: 28px 20px 22px; }
  .auth__mark { width: 96px; height: 96px; }
  .auth__title { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
