/* Sign in. The mark, the name and the form. Nothing else. */

.signin {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.signin__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 10vh;
}

.signin__col {
  width: min(360px, 100%);
}

.signin__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.signin__mark {
  display: block;
  width: min(200px, 52vw);
  height: auto;
  aspect-ratio: 1;
}

@media (max-height: 760px) {
  .signin__mark {
    width: 150px;
  }
}

.signin__name {
  font-size: 17px;
  font-weight: 600;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.card__title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
}

.card__text {
  margin: -10px 0 18px;
  color: var(--text-2);
  text-wrap: pretty;
}

.card__alt {
  margin-top: 16px;
  color: var(--text-3);
  text-align: center;
}

.card__alt .link {
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 2px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field__label {
  font-size: 12px;
  color: var(--text-2);
}

.field__hint {
  font-size: 12px;
  color: var(--amber);
}

.input--code {
  height: 44px;
  padding-left: 0.45em;
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.45em;
  text-align: center;
}

.input--code::placeholder {
  color: var(--line-3);
}

.error {
  margin: -4px 0 12px;
  font-size: 12px;
  color: var(--red-text);
}

.error:empty {
  display: none;
}

.submit {
  width: 100%;
  height: 36px;
  margin-top: 4px;
}

.signin__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 20px;
  font-size: 12px;
  color: var(--text-3);
}
