* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e0e0e0;
  background: #000;
}

#video-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.form-container {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 30px;
  border: 1px solid #4db8ff;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

h1 {
  margin: 0 0 10px;
  text-align: center;
  color: #4db8ff;
  font-size: 24px;
}

.subtitle {
  margin: 0 0 25px;
  text-align: center;
  color: #cfcfcf;
  font-size: 14px;
}

label {
  display: block;
  margin: 15px 0 5px;
  color: #4db8ff;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #222;
  border-radius: 5px;
  background: #111;
  color: #e0e0e0;
  font: inherit;
}

input:focus {
  outline: none;
  border-color: #4db8ff;
  box-shadow: 0 0 0 2px rgba(77, 184, 255, 0.16);
}

button {
  width: 100%;
  margin-top: 25px;
  padding: 12px;
  border: 0;
  border-radius: 5px;
  background: #4db8ff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: #76caff;
}

button:active {
  transform: scale(0.99);
}

.error {
  min-height: 20px;
  margin-top: 10px;
  color: #ff6b6b;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
    align-items: flex-start;
  }

  .form-container {
    margin: 16px 0;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #video-background {
    display: none;
  }
}
