* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
  background: 
    linear-gradient(rgba(209, 178, 141, 1), rgba(168, 142, 90, 0.7), rgba(194, 178, 157, 0.4)), 
    url("images/Bearrah.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

h1 {
  text-align: center;
  margin-top: 20px;
  font-size: 3em;
  color: black;
  font-style: italic;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.box {
  position: relative;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 20px;
  width: 90%;
  max-width: 400px;
}

/* Decorative card with tilt effect */
.card {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 400px;
  border-radius: 20px;
  background: rgba(255, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 0, 0, 0.5);
  z-index: 1; /* Behind form */
}

/* Form container */
.elements.content {
  position: relative;
  z-index: 10; /* Above card */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

input, button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
}

input {
  background: transparent;
  padding: 10px;
  width: 100%;
  font-size: 0.9em;
  outline: none;
}

button {
  background-color: transparent;
  color: white;
  padding: 10px 0;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: darkgoldenrod;
}

::placeholder {
  color: rgb(181, 177, 177);
  font-size: 0.9em;
  padding-left: 5px;
}

/* Fix image rendering for Retina */
img {
  image-rendering: crisp-edges;
}

/* Responsive styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  .box {
    width: 90%;
    padding: 10px;
  }

  input, button {
    font-size: 1em;
  }
}
