/* Login page and the app-wide flash banner. */

.auth-page {
  min-height: calc(100dvh - 52px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 9vh, 88px) 20px 48px;
}

.auth-card {
  width: 100%;
  max-width: 372px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 10px;
}

.auth-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.auth-sub {
  font-size: 12px;
  line-height: 1.55;
  color: var(--t6);
  margin: 0;
  text-wrap: pretty;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form .ctl {
  height: 34px;
  font-size: 13px;
  padding: 0 10px;
}

.auth-form .btn-primary-brand {
  height: 34px;
  width: 100%;
  font-size: 12.5px;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 18px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--t4);
  cursor: pointer;
  user-select: none;
}

.auth-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.auth-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--t7);
  text-wrap: pretty;
}

.auth-errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--sev-bad-bg);
  border: 1px solid var(--bad);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text2);
}

.auth-errors ul {
  margin: 0;
  padding-left: 16px;
  line-height: 1.55;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 29px;
  padding: 0 4px 0 8px;
  border: 1px solid var(--edge2);
  border-radius: 5px;
}

.nav-avatar {
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-on);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-email {
  font-size: 12px;
  color: var(--t3);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-signout {
  height: 21px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  color: var(--t6);
  white-space: nowrap;
  cursor: pointer;
}

.nav-signout:hover { background: var(--input); color: var(--text); }

/* button_to wraps its button in a <form>; collapse it into .nav-right's row. */
.nav-form {
  display: contents;
}

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 20px 0;
}

.flash {
  padding: 9px 12px;
  border: 1px solid var(--edge2);
  border-radius: 6px;
  background: var(--raised);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text2);
}

.flash-notice { background: var(--sev-good-bg); border-color: var(--good); }
.flash-alert  { background: var(--sev-bad-bg);  border-color: var(--bad); }
