* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #ffffff;
  background: #000;
}

/* VIDEO BACKGROUND */

.login-video {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;
  object-fit: cover;

  filter:
    brightness(0.28)
    contrast(1.15)
    saturate(0.88);
}

.login-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    radial-gradient(circle at 50% 46%, rgba(47, 184, 255, 0.13), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.86), transparent 48%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.54) 42%,
      rgba(0, 0, 0, 0.92) 100%
    );
}

.login-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  opacity: 0.16;

  background-image:
    linear-gradient(rgba(255,255,255,0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.075) 1px, transparent 1px);

  background-size: 180px 180px;

  mask-image: radial-gradient(circle at 50% 50%, black 34%, transparent 82%);
}

/* BACK LINK */

.back-link {
  position: absolute;
  top: 36px;
  left: 42px;
  z-index: 10;

  color: rgba(248, 246, 240, 0.88);
  text-decoration: none;

  font-size: 18px;
  font-weight: 420;
  letter-spacing: -0.035em;

  border-bottom: 1px solid rgba(248, 246, 240, 0.72);

  text-shadow:
    0 10px 28px rgba(0, 0, 0, 0.70);

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.back-link:hover {
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* LOGIN LAYOUT */

.login-shell {
  position: relative;
  z-index: 5;

  min-height: 100vh;
  width: min(100% - 40px, 1120px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
}

/* BIG LOGO */

.login-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-brand img {
  width: min(260px, 32vw);
  height: auto;

  filter:
    drop-shadow(0 0 26px rgba(47, 184, 255, 0.32))
    drop-shadow(0 24px 70px rgba(0, 0, 0, 0.92));
}

/* LOGIN CARD */

.login-card {
  width: 100%;

  padding: 34px;

  border-radius: 28px;

  background:
    linear-gradient(180deg, rgba(18, 21, 27, 0.62), rgba(5, 7, 11, 0.42));

  border: 1px solid rgba(255, 255, 255, 0.075);

  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-kicker {
  margin: 0 0 22px;

  color: rgba(180, 220, 245, 0.78);

  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.login-card h1 {
  margin: 0;

  color: rgba(255, 255, 255, 0.98);

  font-size: 48px;
  font-weight: 430;
  line-height: 1;
  letter-spacing: -0.055em;
}

.login-description {
  margin: 18px 0 30px;

  color: rgba(214, 224, 235, 0.74);

  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.018em;
}

/* FORM */

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 8px;

  color: rgba(244, 248, 255, 0.82);

  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.012em;
}

.login-form input {
  width: 100%;
  height: 48px;

  padding: 0 16px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;

  outline: none;

  font-size: 15px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.login-form input:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(47, 184, 255, 0.36);

  box-shadow:
    0 0 0 4px rgba(47, 184, 255, 0.075),
    0 0 30px rgba(47, 184, 255, 0.10);
}

.login-form button {
  height: 50px;
  margin-top: 8px;

  border: 0;
  border-radius: 999px;

  color: #06101a;
  background: rgba(255, 255, 255, 0.94);

  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.025em;

  cursor: pointer;

  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  background: #ffffff;

  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(47, 184, 255, 0.10);
}

.login-note {
  margin: 24px 0 0;

  color: rgba(214, 224, 235, 0.62);

  font-size: 14px;
  line-height: 1.5;
}

.login-note a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.login-note a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 110px 0 70px;
  }

  .login-brand img {
    width: 140px;
  }

  .login-card {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .back-link {
    top: 24px;
    left: 24px;
    font-size: 16px;
  }

  .login-shell {
    width: min(100% - 28px, 1120px);
  }

  .login-card {
    padding: 26px;
    border-radius: 24px;
  }

  .login-card h1 {
    font-size: 42px;
  }
}