/*
 * Phoenix 99 Members Blog login
 * Uses the same visual rules as the existing Members Only login page.
 */
html {
  min-height: 100%;
  background: #176add;
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    linear-gradient(
      180deg,
      #222425 0%,
      #21324a 18%,
      #1e416c 36%,
      #1c508f 56%,
      #1960b8 78%,
      #176add 100%
    );
  background-attachment: fixed;
  color: #10264f;
}

body.auth-page .app-shell {
  min-height: 100vh;
}

.members-login-page {
  max-width: 1480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 28px 60px;
  background: transparent;
}

body.auth-page .auth-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
}

body.auth-page .auth-card {
  width: min(520px, 95vw);
  margin: 0;
  padding: 32px;
  text-align: left;
  background: #fff;
  border: 1px solid #d7e3f6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

body.auth-page .auth-card h1 {
  margin: .1em 0 4px;
  text-align: center;
  color: #173b8a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

body.auth-page .auth-card > .muted {
  margin: 0 0 22px;
  text-align: center;
  color: #3762c6;
}

body.auth-page .auth-logo {
  text-align: center;
}

body.auth-page .p99-login-logo {
  width: 130px;
  height: 118px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.auth-page .p99-login-logo img {
  display: block;
  width: 120px;
  height: 110px;
  object-fit: contain;
}

body.auth-page .stack {
  display: grid;
  gap: 18px;
}

body.auth-page .stack label {
  display: block;
  color: #173b8a;
  font-weight: 650;
}

body.auth-page .stack input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #bcd0fa;
  border-radius: 9px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
  color: #10264f;
  outline: none;
}

body.auth-page .stack input:focus {
  border-color: #1f58df;
  box-shadow: 0 0 0 3px rgba(31, 88, 223, .12);
}

body.auth-page .btn.primary {
  width: 100%;
  display: inline-block;
  border: 1px solid #1f58df;
  border-radius: 9px;
  padding: 11px 18px;
  background: #1f58df;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.auth-page .auth-links {
  margin: 18px 0 0;
  text-align: center;
}

body.auth-page .auth-links a {
  color: #1555ff;
  text-decoration: none;
}

body.auth-page .auth-links a:hover {
  text-decoration: underline;
}

body.auth-page .flash.error {
  padding: 12px 14px;
  margin: 12px 0;
  border: 0;
  border-radius: 9px;
  background: #fff0f0;
  color: #a61e1e;
}

@media (max-width: 900px) {
  body.auth-page { background-attachment: scroll; }
  .members-login-page { padding: 20px 14px; }
}

@media (max-width: 520px) {
  body.auth-page .auth-card { padding: 28px 22px; }
  body.auth-page .p99-login-logo { width: 112px; height: 102px; }
  body.auth-page .p99-login-logo img { width: 104px; height: 96px; }
  body.auth-page .auth-card h1 { font-size: 1.75rem; }
}
