* {
  box-sizing: border-box;
  font-family: Montserrat;
}

body {
  height: 100vh;
  color: hsl(0, 0%, 13%);
  background: radial-gradient(circle, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 40%) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 7rem 2rem 2rem 2rem;
}

.logo-area {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.logo-area img {
  height: 6rem;
}

.card {
  background: hsl(0, 0%, 100%);
  border-radius: 0.3rem;
  box-shadow: 0 0 0.3rem hsla(0, 0%, 0%, 0.5);
  padding: 1.7rem;
  width: 23rem;
  max-width: 100%;
}

.form-row {
  position: relative;
  margin-bottom: 1rem;
}

label {
  position: absolute;
  left: 0.6rem;
  top: -0.35rem;
  transform: none;
  font-weight: 600;
  font-size: 0.7rem;
  color: hsl(0, 0%, 0%);
  background: hsl(0, 0%, 100%);
  border-radius: 0.35rem;
  padding: 0 0.3rem;
  pointer-events: none;
  z-index: 2;
}

input[type="text"],
input[type="password"] {
  background: hsl(0, 0%, 100%);
  border: 1px solid hsl(0, 0%, 0%);
  border-radius: 0.3rem;
  min-height: 2.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(0, 0%, 0%);
  width: 100%;
  padding: 0 0.6rem;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-width: 2px;
}

input[type="text"].erro,
input[type="password"].erro {
  background: hsl(0, 100%, 90%);
}

.mensagemDeErro {
  color: hsl(0, 90%, 40%);
  font-size: 0.7rem;
  font-weight: 500;
  margin: 0.1rem 0 0 0.6rem;
  display: none;
}

.mensagemDeErro:not(:empty) {
  display: block;
}

.actions {
  display: flex;
  flex-direction: column;
}

.btn {
  border: none;
  border-radius: 0.3rem;
  padding: 0.6rem;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: hsl(0, 0%, 0%);
  color: hsl(0, 0%, 100%);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.btn:hover {
  font-weight: 800;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links button {
  border: none;
  border-radius: 0.3rem;
  width: auto;
  text-align: center;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: none;
  color: hsl(0, 0%, 0%);
}

.links button:first-child {
  margin-bottom: 0.5rem;
}

.links button:hover {
  font-weight: 800;
}