.standalone-page-padding {
  padding: 1px max(10px, 1vw) 1rem;
}

html.crm-standalone  nav.breadcrumb>ol {
  padding-inline-start: 0;
}

.standalone-auth-form {
  display: grid;
  grid-template-rows: 1fr auto 3fr;
  justify-content: center;
  width: 100%;
  height: 100vh;
}
.standalone-auth-box {
  --crm-standalone-auth-box-bg: #fff;
  --crm-standalone-auth-box-text: #000;
  --crm-standalone-auth-box-link: #444;
  --crm-standalone-auth-box-link-hover: #136388;
  /* box sizing */
  grid-row: 2;
  box-sizing: border-box;
  width: clamp(280px, 68vw, 45rem);
  margin: 0;
  /* force colors here because the box has an inset civicrm logo, which only looks good on certain background */
  background-color: var(--crm-standalone-auth-box-bg);
  color: var(--crm-standalone-auth-box-text);
  border: none;
  border-radius: 3px;
  padding: clamp(1rem, 3vw, 2rem);
}
.standalone-auth-form img.crm-logo {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem;
  display: block;
}
.standalone-auth-form .input-wrapper {
  margin-bottom: 1rem;
}
/* the div.crm-container is to beat the specificity of civicrm.css under Greenwich */
div.crm-container .standalone-auth-form label {
  display: block;
  margin-bottom: 0.25rem;
}
/* the div.crm-container is to beat the specificity of civicrm.css under Greenwich */
div.crm-container .standalone-auth-form input {
  box-sizing: border-box;
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  background-color: var(--crm-standalone-auth-box-bg);
  color: var(--crm-standalone-auth-box-text);
}
.standalone-auth-form .login-or-forgot {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
.standalone-auth-form .login-or-forgot>a {
  grid-column: 1;
  /* fixed on white background */
  color: var(--crm-standalone-auth-box-link);
}
.standalone-auth-form .login-or-forgot>a:hover {
  color: var(--crm-standalone-auth-box-link-hover)
}
.standalone-auth-form .login-or-forgot>button {
  grid-column: 2;
  place-self: end;
  margin-right: 0; /* override civicrm.css's 6px */
}
