:root {
  --red: #ef2525;
  --red-dark: #8d1015;
  --black: #060606;
  --panel: rgba(19, 15, 15, 0.82);
  --text: #f7f3f3;
  --muted: #c8bdbd;
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  background: var(--black);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

img, svg { display: block; }

a { color: inherit; }

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(117, 17, 21, 0.36), transparent 33%),
    radial-gradient(circle at 50% 100%, rgba(239, 37, 37, 0.18), transparent 42%),
    linear-gradient(180deg, #100a0a 0%, #050505 72%);
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.72) 100%);
}

.background__glow {
  position: absolute;
  left: 50%;
  bottom: -14rem;
  width: 62rem;
  height: 30rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(202, 18, 24, 0.42), transparent 67%);
  filter: blur(28px);
}

.background__flare {
  position: absolute;
  top: 30%;
  left: 50%;
  width: min(60rem, 90vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(239, 37, 37, 0.45), transparent);
  box-shadow: 0 0 30px rgba(239, 37, 37, 0.35);
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem 1.25rem;
}

.login-card {
  width: min(100%, 470px);
  padding: clamp(1.7rem, 5vw, 3rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(28, 21, 21, 0.9), rgba(8, 8, 8, 0.83));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 55px rgba(180, 16, 21, 0.14);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 116px;
  height: 116px;
  margin: 0 auto 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 38px rgba(239, 37, 37, 0.23);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: #ff6d6d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.intro-text {
  max-width: 360px;
  margin: 1rem auto 1.7rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.login-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  box-shadow: 0 14px 34px rgba(126, 11, 16, 0.34);
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 40px rgba(151, 13, 19, 0.44);
}

.login-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.login-button svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-note {
  margin: 1.25rem 0 0;
  color: #9f9292;
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer {
  position: relative;
  z-index: 1;
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  color: #887d7d;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

@media (max-width: 520px) {
  .login-card {
    padding: 1.6rem 1.2rem;
    border-radius: 18px;
  }

  .brand-mark {
    width: 96px;
    height: 96px;
  }

  .intro-text {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
