body {
  background: var(--alcoofest-color-background);
  color: var(--alcoofest-color-text);
  min-height: 100vh;
}

.auth-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  background: var(--alcoofest-color-surface);
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(var(--alcoofest-color-shadow-rgb), .08);
  padding: 1.5rem;
}

.auth-logo {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.5rem;
}

.auth-logo__background {
  fill: var(--alcoofest-color-logo-background);
}

.auth-logo__foreground {
  fill: var(--alcoofest-color-logo-foreground);
}

.auth-logo__foreground-stroke {
  fill: none;
  stroke: var(--alcoofest-color-logo-foreground);
  stroke-linecap: round;
  stroke-width: 8;
}

.auth-logo__accent {
  fill: var(--alcoofest-color-logo-accent);
}

.auth-footer {
  padding: 0 1rem 1.5rem;
}

.app-page {
  padding-bottom: 6rem;
}

.home-page {
  overflow: hidden;
}

.home-page .page-content {
  height: calc(100vh - 6rem);
  min-height: 0;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.page-panel {
  background: var(--alcoofest-color-surface);
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(var(--alcoofest-color-shadow-rgb), .08);
  padding: 1.25rem;
}

.app-form {
  display: flex;
  flex-direction: column;
}

.app-form--narrow {
  max-width: 32rem;
}

.app-form__section {
  background: color-mix(in srgb, var(--alcoofest-color-surface) 92%, var(--alcoofest-color-primary-contrast));
  border: 1px solid color-mix(in srgb, var(--alcoofest-color-border) 78%, var(--alcoofest-color-primary) 22%);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.app-form__field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.app-form__label {
  color: var(--alcoofest-color-text);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 0;
}

.app-form__range-value {
  font-weight: 400;
}

.app-form__control {
  border-color: color-mix(in srgb, var(--alcoofest-color-border) 82%, var(--alcoofest-color-text) 18%);
  border-radius: .85rem;
  min-height: 3rem;
  padding: .8rem .95rem;
}

.app-form__control:focus {
  border-color: var(--alcoofest-color-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--alcoofest-color-primary-rgb), .15);
}

.app-form__field .input-group > .btn {
  min-height: 3rem;
}

.app-form__birthdate {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-form__error {
  min-height: 1.25rem;
}

.app-form__actions {
  margin-top: 1.5rem;
  padding-top: .5rem;
}

.app-form__submit {
  border-radius: .85rem;
  font-weight: 600;
  min-height: 3.15rem;
}

.consumption-form__actions > form {
  width: 100%;
}

.consumption-form__actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-scroll-area {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.consumption-list {
  flex: 1;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding-right: .25rem;
}

.consumptions-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.settings-section {
  display: flex;
  flex-direction: column;
}

.settings-panel-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.settings-link {
  align-items: center;
  background: var(--alcoofest-color-surface);
  border: 1px solid var(--alcoofest-color-border);
  border-radius: .75rem;
  color: inherit;
  display: flex;
  font-weight: 500;
  justify-content: space-between;
  padding: 1rem;
  text-decoration: none;
}

.settings-link-form {
  margin: 0;
}

.settings-link--button {
  align-items: center;
  display: flex;
  font-weight: 500;
  justify-content: space-between;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.settings-link--danger {
  border-color: color-mix(in srgb, var(--alcoofest-color-danger) 35%, var(--alcoofest-color-border) 65%);
  color: var(--alcoofest-color-danger);
}

.consumption-link__details {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.consumption-link__name {
  font-weight: 700;
}

.consumption-link__period {
  font-size: .9rem;
  font-weight: 400;
}

.estimated-marker,
.trend-icon {
  font-size: .55em;
  vertical-align: middle;
}

.app-form__checkbox {
  align-items: flex-start;
  display: flex;
  gap: .6rem;
  margin: 0;
}

.admin-users__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bottom-nav {
  align-items: stretch;
  bottom: 0;
  display: flex;
  inset-inline: 0;
  justify-content: space-around;
  position: fixed;
  z-index: 1030;
}

.bottom-nav__item {
  align-items: center;
  color: var(--alcoofest-color-text);
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: .8rem;
  gap: .35rem;
  min-height: 4.75rem;
  justify-content: center;
  text-decoration: none;
}

.bottom-nav__item i {
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .app-form__birthdate {
    grid-template-columns: 1fr;
  }
}
