[hidden] { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: linear-gradient(145deg, #eef4f8 0%, #f8fafb 55%, #edf3f6 100%);
}

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid rgba(26, 52, 78, .12);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(26, 52, 78, .12);
  padding: 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #1b344e;
  font-size: 1.1rem;
}

.auth-brand img { width: 38px; height: 38px; object-fit: contain; }
.auth-card h1 { margin: 5px 0 7px; color: #1b344e; font-size: 1.7rem; }
.auth-intro { margin: 0 0 22px; color: #627181; }

.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; color: #263c51; font-weight: 600; }
.auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5de;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  color: #1f3448;
  background: #fff;
}
.auth-form input:focus { outline: 2px solid rgba(35, 92, 132, .2); border-color: #356f99; }
.auth-primary, .auth-secondary-button { width: 100%; justify-content: center; }
.auth-primary { margin-top: 4px; }
.auth-message { min-height: 1.3em; margin: 14px 0 0; font-size: .93rem; color: #506273; }
.auth-message.error { color: #a12e2e; }
.auth-message.success { color: #216b3c; }
.auth-link-button {
  border: 0;
  background: none;
  color: #315f82;
  font: inherit;
  padding: 8px 0 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-footnote {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e7ecef;
  color: #7a8792;
  font-size: .8rem;
  line-height: 1.45;
}
.auth-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.auth-user { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #617181; font-size: .83rem; }
.auth-config-error { color: #a12e2e; line-height: 1.45; }

@media (max-width: 720px) {
  .auth-card { padding: 22px; border-radius: 14px; }
  .auth-account .auth-user { display: none; }
}
