/* My Work — расположение страницы авторизации */

.auth-layout {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: var(--weight-heading);
}

.auth-card h1 {
  margin: 0 0 10px;
}

.auth-description {
  margin: 0 0 32px;
  color: var(--text-muted);
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#invite-field[hidden] {
  display: none;
}

#auth-error {
  margin: 0;
}

#auth-error:empty {
  display: none;
}

.auth-submit {
  width: 100%;
}

.auth-switch {
  margin: 28px 0 0;
  text-align: center;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 480px) {
  .auth-layout {
    padding: 20px 16px;
  }
}
