/* Shared passcode controls for the login-style page and in-page dialog. */
.st-access-form [hidden], .st-access-dialog [hidden] { display: none !important; }
.st-access-form .st-access-password { position: relative; }
.st-access-form .st-access-password input { box-sizing: border-box; width: 100%; margin-bottom: 0; padding-right: 4.3rem; }
.st-access-form .st-access-password button {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  padding: .5rem; border: 0; border-radius: 7px; background: transparent;
  color: #004f4f; font: inherit; cursor: pointer;
}
.st-access-form .key-toggle {
  display: block; min-height: 40px; margin: .25rem auto; padding: .3rem .6rem;
  border: 0; background: transparent; color: #004f4f; font: inherit;
  font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.st-access-form .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 .8rem; }
.st-access-form .keys button {
  min-height: 44px; padding: .35rem; border: 1px solid #89aba8; border-radius: 10px;
  background: #eff7f5; color: #004f4f; font: inherit; font-size: 1.25rem; cursor: pointer; touch-action: manipulation;
}
.st-access-form .keys button:hover { background: #d9eeea; }
.st-access-form .keys .utility { font-size: .9rem; }
.st-access-form .help { margin: 1rem 0 0; color: #40595a; font-size: .85rem; line-height: 1.5; text-align: center; }
.st-access-form button:focus-visible, .st-access-dialog a:focus-visible { outline: 3px solid #ff7f50; outline-offset: 2px; }
.st-access-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.st-access-dialog .st-login-dialog__surface { box-sizing: border-box; }
.st-access-dialog .st-login-dialog__brand { color: #004f4f; line-height: 1; }
.st-access-dialog h2 { padding: 0; border: 0; text-shadow: none; }
body:has(.st-access-dialog[open]) { overflow: hidden; }
.st-access-dialog a { color: #004f4f; }

/* The direct URL uses the actual WordPress login stylesheet and branding. */
.st-access-page #login { margin: 0 auto; }
.st-access-page .st-access-heading {
  position: relative; margin: 0 0 .75rem; padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.6); border-radius: 20px;
  background: rgba(255,255,255,.8); box-shadow: 0 8px 24px rgba(0,55,55,.2);
  text-align: center; backdrop-filter: blur(9px);
}
.st-access-heading h2 { margin: 0 0 .4rem; color: #004f4f; font-size: 1.65rem; font-weight: 400; }
.st-access-heading p { margin: 0; font-size: 1rem; line-height: 1.5; }
.st-access-page .st-access-form { display: block; }
.st-access-page .st-access-form label { display: block; }
.st-access-page .st-access-form input { padding: .6rem .75rem; }
.st-access-page .st-access-form .button-primary { width: 100%; cursor: pointer; }
.st-access-page .st-access-form .help { margin: 1rem 0 0; }
.st-access-page .st-access-account { text-align: center; }
.st-access-page .st-access-account a { display: inline-block; text-decoration: none; line-height: 2; }
.st-access-page .privacy-policy-page-link { box-sizing: border-box; }
