:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08090c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: #f7f7f8;
  background:
    linear-gradient(145deg, rgba(5, 6, 9, 0.98), rgba(13, 14, 19, 0.92)),
    #08090c;
}

.login-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.login-glow-one {
  width: 440px;
  height: 440px;
  top: -190px;
  right: -100px;
  background: rgba(229, 9, 20, 0.17);
}

.login-glow-two {
  width: 360px;
  height: 360px;
  bottom: -210px;
  left: -120px;
  background: rgba(73, 57, 160, 0.12);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.login-card {
  width: min(100%, 410px);
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(16, 17, 22, 0.88);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.login-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #e50914;
  box-shadow: 0 12px 34px rgba(229, 9, 20, 0.24);
  font-size: 1.35rem;
  font-weight: 900;
}

.login-eyebrow {
  margin: 0 0 10px;
  color: #e50914;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.04;
}

.login-copy {
  margin: 14px 0 30px;
  color: #9498a3;
}

.login-form {
  display: grid;
}

.login-form label {
  margin: 0 0 8px;
  color: #c8cad1;
  font-size: 0.8rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 50px;
  margin-bottom: 18px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: rgba(5, 6, 9, 0.7);
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-form input:focus {
  border-color: rgba(229, 9, 20, 0.8);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.13);
}

.login-error {
  margin: -2px 0 16px;
  color: #ff6d74;
  font-size: 0.82rem;
}

.login-error[hidden] {
  display: none;
}

.login-form button {
  height: 50px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  background: #e50914;
  font: inherit;
  font-weight: 800;
  transition: background 150ms ease, transform 150ms ease;
}

.login-form button:hover {
  background: #f1121e;
  transform: translateY(-1px);
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 14px;
  }

  .login-card {
    padding: 32px 24px;
    border-radius: 18px;
  }
}
