:root{--auth-v16-accent:#79e3ff;--auth-v16-line:rgba(154,198,255,.2)}
.hyauth-provider-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
.hyauth-option{font:inherit;font-size:.88rem;font-weight:600;color:inherit;border:1px solid var(--auth-v16-line);background:rgba(119,164,232,.07);border-radius:12px;padding:12px 14px;min-height:44px;cursor:pointer;text-align:center;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.hyauth-option:hover:not(:disabled){border-color:var(--auth-v16-accent);background:rgba(91,206,255,.12)}
.hyauth-option:focus-visible{outline:2px solid var(--auth-v16-accent);outline-offset:3px}
.hyauth-option:disabled{opacity:.48;cursor:not-allowed}
.hyauth-provider-options [data-provider=hyauth]{grid-column:1/-1;background:linear-gradient(115deg,rgba(77,211,242,.17),rgba(141,112,255,.2));border-color:rgba(117,222,255,.4)}
.hyauth-help{font-size:.8rem;line-height:1.55;color:inherit;opacity:.72;overflow-wrap:anywhere}
.hyauth-security-card{grid-column:1/-1;min-width:0}
.hyauth-account-list,.hyauth-consents,.hyauth-passkey-summary{margin-top:18px;min-width:0}
.hyauth-account-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(90px,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--auth-v16-line);min-width:0}
.hyauth-account-row>span{font-size:.83rem;opacity:.75;overflow-wrap:anywhere}
.hyauth-account-row>.hyauth-option{min-width:105px}
.hyauth-security-card h3{margin:22px 0 8px;font-size:1rem}
.hyauth-portal{max-width:520px;margin:0 auto;padding:36px 24px}
.hyauth-portal .hyauth-card{padding:26px;border:1px solid var(--auth-v16-line);border-radius:22px;background:rgba(8,14,32,.92);box-shadow:0 22px 80px rgba(0,0,0,.35);min-width:0}
.hyauth-portal h1{font-size:1.8rem;margin:10px 0 8px}.hyauth-portal label{display:block;font-size:.9rem;margin:16px 0 6px}.hyauth-portal input{box-sizing:border-box;width:100%;font:inherit;padding:13px;border:1px solid var(--auth-v16-line);border-radius:10px;background:rgba(255,255,255,.035);color:inherit}.hyauth-portal form>.hyauth-option{margin-top:20px;width:100%}.hyauth-portal a{color:var(--auth-v16-accent)}
@media(max-width:520px){.hyauth-account-row{grid-template-columns:minmax(0,1fr) auto;gap:7px}.hyauth-account-row>.hyauth-provider-state{grid-column:1}.hyauth-account-row>.hyauth-option{grid-column:2;grid-row:1/3}.hyauth-portal{padding:20px 12px}.hyauth-portal .hyauth-card{padding:22px 18px}.hyauth-provider-options{grid-template-columns:1fr}.hyauth-security-card{padding:18px}}

/* Share the same Google treatment across the portal and embedded sign-in forms. */
button.hyauth-option[data-provider="google"],body[data-auth-scene] button.hyauth-option[data-provider="google"],
#ps-signin-alternatives #ps-sign-google {
  box-sizing: border-box; padding: 10px 16px; min-height: 44px; border: 1px solid #747775;
  border-radius: 6px; color: #1f1f1f; background: #fff; font: 500 14px/1.4 Roboto,Arial,sans-serif;
}
button.hyauth-option[data-provider="google"]:not([hidden]),#ps-signin-alternatives #ps-sign-google:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center;
}
button.hyauth-option[data-provider="google"]:hover:not(:disabled),body[data-auth-scene] button.hyauth-option[data-provider="google"]:hover:not(:disabled),
#ps-signin-alternatives #ps-sign-google:hover:not(:disabled) { color: #1f1f1f; background: #f3f6fb; border-color: #5f6368; }
button.hyauth-option[data-provider="google"]::before,#ps-signin-alternatives #ps-sign-google::before {
  content: ""; display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; margin-inline-end: 12px;
  background: transparent url("/icons/marketplace/brands/google-signin.png") center / contain no-repeat;
}

/* Give links and buttons the same layout box, including when their text wraps. */
.hyauth-portal #auth-provider, .hyauth-portal #auth-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.hyauth-portal #auth-provider > .hyauth-option, .hyauth-portal #auth-session > button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  text-decoration: none;
}
.hyauth-portal #auth-provider > a { order: 1; }
.hyauth-portal #auth-session:not(:empty) { margin-block: 14px; }
.hyauth-portal #auth-session > p { margin: 0; }
.hyauth-portal #auth-status:empty { display: none; }
.hyauth-portal .hyauth-card::before { display: none; }

.auth-story__brand#auth-origin { min-width: 0; }
#auth-origin .auth-story__logo { flex: none; padding: 2px; box-sizing: border-box; }
#auth-origin .auth-story__logo img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; background: #101525; }
#auth-origin .auth-origin-letters { font: 800 13px/1 system-ui,sans-serif; letter-spacing: 0; }
#auth-origin .auth-origin-copy { min-width: 0; overflow-wrap: anywhere; }
#auth-origin [hidden] { display: none !important; }
.hyauth-portal .auth-header {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 16px; margin-block-end: 12px;
}
.hyauth-portal .auth-header .eyebrow { color: #72eafa; font: 750 10px/1.4 system-ui,sans-serif; letter-spacing: .14em; }
.hyauth-portal .auth-story::before, .hyauth-portal .auth-story::after { content: none; }
.hyauth-portal .auth-story__copy { margin: 0; padding: 0; }
.hyauth-portal .auth-story__logo {
  background: linear-gradient(120deg,#62e8ff,#b39aff,#f18bcd,#62e8ff);
  background-size: 300% 300%; animation: auth-mark-chroma 7s ease-in-out infinite;
}
@keyframes auth-mark-chroma { 0%,100% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} }
.hyauth-portal .auth-portrait {
  position: relative; isolation: isolate; display: grid; place-items: center;
  width: clamp(150px,17vw,218px); aspect-ratio: 1; align-self: center; flex: none;
  margin: 20px auto; border-radius: 50%; background: radial-gradient(circle,#354d87 0%,#0c142c 60%,transparent 72%);
}
.auth-portrait img {
  display: block; width: 77%; height: 77%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px #86c5fa69,0 0 28px #6e98f64a;
}
.auth-portrait::before,.auth-portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 30deg,#62ebff,transparent 18%,#af85ff 40%,#f08ccc 58%,transparent 77%,#62ebff);
  mask-image: radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));
  -webkit-mask-image: radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));
  animation: auth-orbit 12s linear infinite;
}
.auth-portrait::after { inset: 6%; animation: auth-orbit 8s linear infinite reverse; }
@keyframes auth-orbit { to { transform: rotate(1turn); } }
.hyauth-portal #auth-provider [data-provider="passkey"] {
  background: linear-gradient(105deg,#113746,#28244c); border-color: #56869e; color: #f2faff;
}
.hyauth-portal #auth-provider [data-provider="passkey"]::before {
  content: ""; width: 20px; height: 20px; flex: none; margin-inline-end: 10px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399ecfa' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 11a9 9 0 0 1 18 0M6 12a6 6 0 1 1 12 0c0 4 1 6 2 7M9 12a3 3 0 0 1 6 0c0 4 1 7 2 9M12 12c0 4-1 8-3 10M6 15c0 2-1 4-2 5M9 15c0 2-1 4-2 6'/%3E%3C/svg%3E");
}
@media (max-width:820px) {
  .hyauth-portal .auth-story { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; min-height: 0; }
  .hyauth-portal .auth-portrait { grid-column: 2; grid-row: 1 / 3; width: clamp(72px,18vw,105px); margin: 0; }
  .hyauth-portal .auth-story__copy { grid-column: 1; }
  .hyauth-portal .auth-story__eyebrow { display: none; }
  .hyauth-portal .auth-story__copy h2 { font-size: clamp(21px,5.5vw,30px); margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hyauth-portal .auth-story__logo,.hyauth-portal .auth-portrait::before,.hyauth-portal .auth-portrait::after { animation: none !important; }
}

/* The primary provider is only rendered at an administrator sign-in. */
button.hyauth-option[data-provider="hyauth"]:not([hidden]) {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #f5fcff;
  background: linear-gradient(105deg,#123646,#22203e) padding-box,
              linear-gradient(110deg,#58e1e7,#a08bfa,#e586ce,#58e1e7) border-box;
  font-weight: 700;
  animation: hy-admin-breath 5s ease-in-out infinite;
}
@keyframes hy-admin-breath {
  0%, 100% { box-shadow: 0 0 7px #51dce330, 0 0 11px #bd73ed26; }
  50% { box-shadow: 0 0 14px #51dce36b, 0 0 20px #bd73ed50; }
}
button.hyauth-option[data-provider="hyauth"]:focus-visible {
  outline: 3px solid #85eafa;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  button.hyauth-option[data-provider="hyauth"]:not([hidden]) { animation: none; }
}
