/**
 * @file
 * Log in / create account panel.
 */
.sm-auth {
  width: 100%;
}

.sm-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: var(--sm-space-5);
  padding: 4px;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-pill);
  background: var(--sm-night);
}

.sm-shell .sm-auth__tab {
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--sm-radius-pill);
  background: transparent;
  color: var(--sm-mist);
  font-family: var(--sm-font-body);
  font-size: var(--sm-text-sm);
  font-weight: 600;
  cursor: pointer;
}

.sm-shell .sm-auth__tab:hover {
  color: var(--sm-ink);
}

.sm-shell .sm-auth__tab[aria-selected="true"] {
  background: var(--sm-ink);
  color: var(--sm-ink-on-light);
}

.sm-auth__heading {
  font-size: var(--sm-text-xl);
}

.sm-shell .sm-auth form {
  max-width: none;
}

.sm-shell .sm-auth .form-actions {
  margin-top: var(--sm-space-5);
}

.sm-shell .sm-auth .form-actions input[type="submit"] {
  width: 100%;
}

.sm-auth__aside {
  margin: var(--sm-space-4) 0 0;
  color: var(--sm-mist);
  font-size: var(--sm-text-sm);
}

.sm-shell .sm-auth .password-confirm,
.sm-shell .sm-auth .password-strength,
.sm-shell .sm-auth .password-suggestions {
  margin-top: var(--sm-space-2);
  color: var(--sm-mist);
  font-size: var(--sm-text-xs);
}

.sm-shell .sm-auth .password-suggestions {
  padding: var(--sm-space-3);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-field);
  background: var(--sm-navy);
}

.sm-shell .sm-auth .password-strength__meter {
  height: 4px;
  border-radius: 2px;
  background: var(--sm-navy-2);
}

/* Standalone page (/user/login). */
.sm-auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sm-space-5);
  min-height: 100vh;
  padding: var(--sm-space-6) var(--sm-space-4);
}

.sm-auth-page__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sm-space-2);
  color: var(--sm-ink) !important;
  font-family: var(--sm-font-display);
  font-size: var(--sm-text-xl);
  font-weight: 800;
  text-decoration: none;
}

.sm-auth-page__brand svg {
  width: 34px;
  height: 34px;
  color: var(--sm-amber);
}

.sm-auth-page__card,
.sm-landing__panel {
  width: 100%;
  max-width: 28rem;
  padding: var(--sm-space-6);
  border: 1px solid var(--sm-line);
  border-radius: 24px;
  background: var(--sm-navy);
  box-shadow: var(--sm-lift);
}

@media (max-width: 480px) {
  .sm-auth-page__card,
  .sm-landing__panel {
    padding: var(--sm-space-5) var(--sm-space-4);
  }
}

/* Messages on landing-type pages sit above the card. */
.sm-shell--landing [data-drupal-messages] {
  width: 100%;
  max-width: 28rem;
  margin: var(--sm-space-4) auto 0;
}
