/* Unified sign-in additions. The base association styles stay in app.css. */
.auth-entry-content { width: 100%; max-width: 520px; margin-inline: auto; }
.auth-entry-page .auth-brand .brand-logo {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: brightness(0) invert(1);
  object-fit: contain;
}
.auth-entry-page .auth-aside { background: #12325b; }
.auth-entry-page .auth-aside-copy h2 { font-size: 1.6rem; }
.auth-entry-page .auth-mode-notice { margin: 0 0 14px; }
.auth-entry-page .auth-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  border-bottom: 1px solid #d8e0e8;
}
.auth-entry-page .auth-tab {
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #45515d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-entry-page .auth-tab[aria-selected="true"] {
  border-bottom-color: #12325b;
  color: #12325b;
}
.auth-entry-page .auth-tab:focus-visible,
.auth-entry-page .auth-register-link:focus-visible,
.auth-entry-page .auth-back:focus-visible,
.auth-entry-page .auth-org-option:focus-visible {
  outline: 3px solid #20577d;
  outline-offset: 2px;
}
.auth-entry-page .auth-tab-panel { min-width: 0; }
.auth-entry-page .auth-control-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.auth-entry-page .auth-control-row .input { min-width: 0; flex: 1 1 auto; }
.auth-entry-page .auth-control-row #register-code { min-width: 120px; }
.auth-entry-page .auth-code-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 126px;
  min-height: 44px;
  margin: 0;
  padding-inline: 10px;
  white-space: nowrap;
}
.auth-entry-page .auth-code-button:disabled { cursor: not-allowed; opacity: .72; }
.auth-entry-page .auth-live-status,
.auth-entry-page .auth-field-hint {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: #45515d;
  font-size: .8125rem;
  line-height: 1.5;
}
.auth-entry-page .auth-field-hint { margin-top: 8px; }
.auth-entry-page .auth-org-field { position: relative; }
.auth-entry-page .auth-org-control { position: relative; }
.auth-entry-page .auth-org-listbox {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #c2ced9;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 32, 42, .12);
}
.auth-entry-page .auth-org-listbox[hidden] { display: none; }
.auth-entry-page .auth-org-option {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid #e3e8ed;
  background: #fff;
  color: #17202a;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.auth-entry-page .auth-org-option:last-child { border-bottom: 0; }
.auth-entry-page .auth-org-option[aria-selected="true"],
.auth-entry-page .auth-org-option:hover { background: #edf1f6; }
.auth-entry-page .auth-org-option small { color: #45515d; font-size: .8125rem; }
.auth-entry-page .auth-register-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.auth-entry-page .auth-register-grid .field { min-width: 0; padding-block: 8px; }
.auth-entry-page .auth-register-grid .auth-register-submit { grid-column: 1 / -1; width: 100%; min-height: 44px; margin-top: 8px; }
.auth-entry-page .auth-register-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #12325b;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-entry-page .auth-form > .btn[type="submit"] { min-height: 44px; }
.auth-entry-page .auth-secondary a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-entry-page .auth-help-text { flex: 1 1 100%; }
.auth-entry-page .auth-secondary { gap: 6px 8px; }
.auth-entry-page .auth-back {
  align-self: flex-start;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #12325b;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-entry-page .auth-error { margin: 0 0 14px; }

@media (min-width: 900px) {
  .auth-entry-page .auth-register-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-entry-page .auth-register-grid .auth-code-field { grid-column: 1 / -1; }
  .auth-entry-page .auth-register-grid .auth-org-field { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .auth-entry-page .auth-control-row { gap: 6px; }
  .auth-entry-page .auth-code-button { min-width: 108px; padding-inline: 7px; font-size: .875rem; }
  .auth-entry-page .auth-tab { padding-inline: 10px; }
  .auth-entry-page .auth-secondary { align-items: flex-start; }
}

@media (max-width: 760px) {
  .auth-entry-page .auth-aside-copy { display: none; }
}
