body {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  background: url(images/krakow-4472330.jpg) no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 0;
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

h2 {
  margin-top: 40px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

form {
  background-color: rgba(44, 26, 20, 0.95); /* Темно-коричневая карточка */
  padding: 40px 30px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  width: 320px;
}

form h1 {
  color: white;
  text-align: center;
  margin-bottom: 30px;
}

form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

form input:focus {
  outline: none;
  box-shadow: 0 0 5px white;
}

button[type="submit"] {
  width: 100%;
  background-color: #d4a373;
  color: white;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

button[type="submit"]:hover {
  background-color: #c5844f;
}

@media (max-width: 768px) {
  form {
    width: 90vw;
    padding: 30px 20px;
  }

  form input {
    font-size: 18px; 
    padding: 14px;
  }

  button[type="submit"] {
    font-size: 20px;
    padding: 14px;
  }

  h2 {
    font-size: 1.5rem;
  }

  form h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 400px) {
  form {
    padding: 25px 15px;
  }

  form input {
    font-size: 16px;
    padding: 12px;
  }

  button[type="submit"] {
    font-size: 18px;
    padding: 12px;
  }
}

