/* The login pages (login.html, login_entra.html). Split out of style.css (issue #159). */

/* The login pages (login.html, login_entra.html; issues #72, #267): the top
   bar, then one panel under it, drawn with the same panel, title strip,
   field and button rules as the rest of the app. */
.login-body { min-height: 100vh; display: flex; flex-direction: column; }

/* width: 100%, as main's auto side margins would shrink it in the column. */
.login-main { flex: 1; width: 100%; display: grid; place-items: start center; padding: 3rem 1rem 2rem; max-width: none; }

.login-panel { width: min(100%, 26rem); display: flex; flex-direction: column; gap: 1rem; margin: 0; }

.login-panel > .panel-head { margin-bottom: 0; }

.login-panel .section-copy { margin: 0; }

.login-panel .error-line { margin-top: 0; }

.login-submit { width: 100%; margin-top: 0.35rem; }

/* The Entra login button (login_entra.html): Microsoft's own "Sign in with
   Microsoft" look, dark theme, on both of the app's themes -- #2f2f2f, white
   text, the four-square logo on the left. A link, so the bare `button`
   rules don't reach it. */
a.ms-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.05rem;
  padding-inline: 1.35rem;
  color: #ffffff;
  background: #2f2f2f;
  border: 1px solid #8c8c8c;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.ms-login-button:hover { background: #3b3b3b; border-color: #b0b0b0; }

a.ms-login-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.ms-logo { flex: none; }
