@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");

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

body {
  background-color: #223a66;
  color: #fff;
}

h1 {
  text-align: center;
  padding: 20px;
}

.registration {
  max-width: 700px;
  margin: auto;
  background: rgba(75, 57, 57, 0.329);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(102, 85, 85, 0.87);
}

.registration .title {
  font-size: 25px;
  font-weight: 500;
  position: relative;
}

.registration .title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(135deg, #71b7e6, #e12454);
  border-radius: 5px;
}

.user-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0;
}

.input-box {
  margin-bottom: 15px;
  width: calc(50% - 10px);
}

.input-box span.details {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

.input-box input,
.input-box select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(204, 204, 204, 0.952);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  font-size: 16px;
}

.button {
  margin-top: 30px;
}

.button input {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #025c99, #e12454);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button input:hover {
  background: linear-gradient(-135deg, #db0d7f, #e12454);
}

.error {
  color: #e74c3c;
  font-size: 0.9em;
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
  .user-details {
    flex-direction: column;
  }

  .input-box {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .registration {
    padding: 20px;
  }

  .registration .title {
    font-size: 22px;
  }

  h1 {
    font-size: 24px;
  }
}
