/*
  Auth pages: login/registration forms and hero.
  Colors and theme tokens live in pwa_theme.css -- change them there, not here.
*/

.auth-form {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.auth-panel {
  margin-inline: auto;
  max-width: 32rem;
}

.auth-hero {
  display: grid;
  justify-items: center;
  margin-inline: auto;
  max-width: 34rem;
  text-align: center;
}

.app-card > h3:first-child,
.app-panel > h3:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.auth-hero__mark {
  align-items: center;
  display: inline-flex;
  height: 4rem;
  justify-content: center;
  margin-bottom: var(--space-3);
  width: 4rem;
}

.auth-hero__logo {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.auth-form__row {
  align-items: center;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 8.5rem minmax(16rem, 22rem);
}

.auth-form__row label {
  justify-self: end;
  text-align: right;
}

.auth-form__field {
  display: grid;
  gap: var(--space-2);
  width: 100%;
}

.auth-form__field input {
  width: 100%;
}

.auth-form__remember {
  align-items: start;
  display: grid;
  gap: var(--space-2) var(--space-3);
  grid-template-columns: 8.5rem minmax(16rem, 22rem);
}

.auth-form__remember-label {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: var(--space-2);
  grid-column: 2;
  grid-template-columns: auto 1fr;
  justify-self: stretch;
  line-height: 1.3;
  text-align: left;
}

.auth-form__remember-label input[type="checkbox"] {
  margin-top: 0.05rem;
}

.auth-form__remember-copy {
  display: grid;
  gap: 0.15rem;
}

.auth-form__remember-title {
  color: var(--color-text);
  font-weight: 650;
}

.auth-form__remember-help {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  font-weight: 450;
}

.auth-form__remember .message-list__item {
  grid-column: 2;
}

.action-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

main > .action-grid {
  background: transparent;
  border: 0;
  padding: 0;
}

.action-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-surface);
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-4);
}

.action-card--primary {
  border-left: 5px solid var(--color-primary);
}

.segmented-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-3) var(--space-4);
}

.segmented-nav a {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-small);
  color: var(--color-text);
  font-weight: 800;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

