body {
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f3f3f3;
  margin: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 420px; /* increased width so two inputs fit */
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.title {
  font-size: 28px;
  color: royalblue;
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.title::before,
.title::after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 0px;
  background-color: royalblue;
}

.title::before {
  width: 18px;
  height: 18px;
  background-color: royalblue;
}

.title::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
}

.message,
.signin {
  color: rgba(88, 87, 87, 0.822);
  font-size: 14px;
}

.signin {
  text-align: center;
}

.signin a {
  color: royalblue;
}

.signin a:hover {
  text-decoration: underline royalblue;
}

/* Flex container for first/last name */
.flex {
  display: flex;
  gap: 15px;
  width: 100%;
}

.flex label {
  flex: 1; /* make them equal width */
}

.flex .input {
  width: 100%;
}

/* Input styling */
.form label {
  position: relative;
  width: 100%;
}

.form label .input {
  width: 100%;
  padding: 12px 5px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.3);
  border-radius: 10px;
  font-size: 1em;
  background: none;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
  background: transparent;
  padding: 0 4px;
}

.form label .input:placeholder-shown + span {
  top: 50%;
  font-size: 0.9em;
}

/* Float label only if field is focused or has text */
.form label .input:focus + span,
.form label .input:not(:placeholder-shown) + span {
  top: -5px; 
  font-size: 0.7em;
  font-weight: 600;
  background: #fff;
  left: 8px;
  padding: 0 4px;
  color: royalblue;
}

/* Submit button */
.submit {
  border: none;
  outline: none;
  background-color: royalblue;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transition: 0.3s ease;
  cursor: pointer;
}

.submit:hover {
  background-color: rgb(56, 90, 194);
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
