* {
  box-sizing: border-box;
}

body {
  margin: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fafafa;
  color: #212121;
  line-height: 1.5;
}

/*Task 2 */

.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
  justify-content: center;
}

.gallery-item {
  width: calc((100% - 48px) / 3);
}

.gallery-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/*Task 3*/

#name-input {
  width: 360px;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #808080;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

#name-input:hover {
  border: 1px solid black;
}

#name-input:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#name-input::placeholder {
  font-size: 1.5em;
  color: #aaa;
}

/*Task 4*/

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 350px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  color: #2e2f42;
}

.login-form input {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.login-form input:hover {
  border: 1px solid black;
}

.login-form input:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.login-form button[type="submit"] {
  width: 86px;
  height: 40px;
  padding: 8px 16px;
  background-color: pink;
  color: purple;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.login-form button[type="submit"]:hover {
  background-color: plum;
}
