.ksauth {
  min-height: calc(100vh - 160px);
  padding: 32px 20px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f5f7fb;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.4;
  color: #0f172a;
}
.ksauth-card {
  width: min(100%, 460px);
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
}
.ksauth-label { margin-bottom: 8px; color: #2563eb; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ksauth h1 { margin: 0 0 10px; color: #0f172a; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.ksauth-intro,
.ksauth-signed p { margin: 0 0 18px; color: #475569; font-size: 15px; line-height: 1.5; }
.ksauth-message { margin-bottom: 18px; padding: 11px 13px; border-radius: 6px; font-size: 13px; line-height: 1.45; }
.ksauth-error { background: #fee2e2; color: #b91c1c; }
.ksauth-success { background: #dcfce7; color: #15803d; }
.ksauth-info { background: #eff6ff; color: #1d4ed8; }
.ksauth-google { margin-bottom: 14px; }
.ksauth-google .nsl-container { width: 100%; }
.ksauth-google .nsl-container-buttons { width: 100%; padding: 0 !important; }
.ksauth-google .nsl-container-buttons a { width: 100%; max-width: none !important; }
.ksauth-divider { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; color: #94a3b8; font-size: 12px; }
.ksauth-divider::before,
.ksauth-divider::after { content: ''; height: 1px; flex: 1; background: #e5e7eb; }
.ksauth label { display: block; margin-bottom: 16px; color: #334155; font-size: 13px; font-weight: 600; line-height: 1.4; }
.ksauth #ksauth-loginform p { margin: 0 0 14px; }
.ksauth #ksauth-loginform label { margin-bottom: 0; }
.ksauth #ksauth-loginform [id^="nsl-custom-login-form-"] { display: none !important; }
.ksauth input[type=text],
.ksauth input[type=password],
.ksauth input[type=email] {
  width: 100%; height: 46px; margin-top: 6px; padding: 0 13px;
  border: 1px solid #dbe1e8; border-radius: 7px; background: #fff;
  color: #0f172a; font: inherit; font-size: 15px; box-shadow: none;
}
.ksauth input:focus { border-color: #2563eb; outline: 3px solid rgba(37, 99, 235, .12); }
.ksauth .login-remember { margin: 2px 0 16px; }
.ksauth .login-remember label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.ksauth .login-remember input { margin: 0; }
.ksauth .login-submit { margin: 0; }
.ksauth #wp-submit,
.ksauth-primary {
  width: 100%; min-height: 46px; padding: 0 18px; display: inline-flex;
  align-items: center; justify-content: center; border: 0; border-radius: 7px;
  background: #2563eb; color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.ksauth #wp-submit:hover,
.ksauth-primary:hover { background: #1d4ed8; color: #fff; }
.ksauth-links { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; color: #64748b; font-size: 12px; }
.ksauth-links a { color: #2563eb; font-weight: 600; text-decoration: none; }
.ksauth-links a:hover { text-decoration: underline; }
.ksauth-links-center { justify-content: center; text-align: center; }
.ksauth-signed { text-align: center; }
.ksauth-signed .ksauth-primary { width: auto; min-width: 160px; }
@media (max-width: 560px) {
  .ksauth { min-height: 0; padding: 28px 14px 44px; }
  .ksauth-card { padding: 24px 20px; }
  .ksauth h1 { font-size: 26px; }
  .ksauth-links { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
}

/* Astra interaction isolation for the front-end authentication surface. */
body.ks-app-page .ksauth #wp-submit:is(:hover, :focus, :focus-visible),
body.ks-app-page .ksauth .ksauth-primary:is(:hover, :focus, :focus-visible) {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}
body.ks-app-page .ksauth-links a:is(:hover, :focus, :focus-visible) {
  background: transparent !important;
  color: #2563eb !important;
  text-decoration: underline;
}
body.ks-app-page .ksauth-google a:is(:hover, :focus, :focus-visible) {
  background: transparent !important;
  color: #111827 !important;
}
body.ks-app-page .ksauth #wp-submit:focus-visible,
body.ks-app-page .ksauth .ksauth-primary:focus-visible,
body.ks-app-page .ksauth-google a:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px;
}
