* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: var(--gray900);
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
    helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica,
    arial, sans-serif;
  background: var(--teal900);
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: var(--space-8);
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  width: 32rem;
  background-color: var(--white);
  padding: var(--space-14) var(--space-9);
  box-shadow: var(--shadow300);
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.header a {
  color: var(--teal700);
  display: inline-block;
}

.header-logo {
  width: var(--size-52);
}

.header-title {
  font-size: var(--size-4);
  text-align: center;
  color: var(--gray700);
}

.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--space-8);
  align-items: center;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.input {
  flex: 1;
  padding: var(--space-3) var(--space-3_5);
  border: 1px solid var(--gray300);
  border-radius: var(--size-2);
  font-size: var(--size-4);
}

.input:focus {
  outline: none;
  box-shadow: var(--teal500) 0 0 0 2px;
}

.error-input {
  border: 2px solid var(--red500);
}

.error-msg {
  color: var(--red500);
  font-size: var(--size-3_5);
}

.error-msg.hidden {
  display: none;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

.btn {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: none;
  border-radius: var(--size-2);
  background-color: var(--teal500);
  color: var(--white);
  font-size: var(--size-4);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--teal600);
}

.btn:focus {
  outline: none;
  border: 1px solid var(--white);
  box-shadow: var(--teal500) 0 0 0 3px;
}

.footer-link {
  color: var(--gray700);
  font-size: var(--size-3_5);
  text-decoration: none;
  margin: var(--space-8) 0 0;
}

.footer-link:hover {
  text-decoration: underline;
}
