
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #007bff, #00bcd4);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


div {
  background-color: #ffffff;
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 420px;
}


h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: 1px;
}


form p {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  position: relative;
}

label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

input[type="text"],
input[type="date"],
input[type="email"] {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
}


input:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}


.icon-ok {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #28a745;
  display: none;
  font-weight: bold;
}

input:valid + .icon-ok {
  display: inline;
}

.submit {
  text-align: center;
}

input[type="submit"] {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  transition: background 0.25s ease, transform 0.1s ease;
}

input[type="submit"]:enabled {
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

input[type="submit"]:disabled {
  background-color: #7a7a7a;
  color: white;
  cursor: not-allowed;
}

input[type="submit"]:enabled:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

input[type="submit"]:active {
  transform: scale(0.98);
}

/* Mobile */
@media (max-width: 480px) {
  div {
    padding: 25px 30px;
  }

  h1 {
    font-size: 1.5em;
  }

  input[type="submit"] {
    width: 100%;
  }
}
