/* MetaB deployment login theme. CSS-only visual override. */
:root {
  --metab-blue: #509ee2;
  --metab-blue-strong: #2d86d4;
  --metab-text: #303b45;
  --metab-soft: #606b75;
  --metab-muted: #8a96a3;
  --metab-page: #f9f9fa;
  --metab-border: #dcdfe3;
  --metab-border-soft: #e7eaee;
  --metab-card-shadow: 0 6px 18px rgba(7, 23, 34, 0.08);
}

.auth-page-login,
.auth-page-forgot,
.auth-page-invitation,
.auth-page-mfa {
  position: relative;
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--metab-page);
  color: var(--metab-text);
  font-family: Lato, Arial, sans-serif;
}

.auth-page-login::before,
.auth-page-forgot::before,
.auth-page-invitation::before,
.auth-page-mfa::before {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: min(38vh, 360px);
  pointer-events: none;
  background-image: url("/login-background.svg");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: min(100vw, 1440px) auto;
  content: "";
}

.auth-page-login .auth-layout,
.auth-page-forgot .auth-layout,
.auth-page-invitation .auth-layout,
.auth-page-mfa .auth-layout {
  width: min(100%, 494px);
  z-index: 1;
}

.auth-page-login .auth-card-login,
.auth-page-forgot .auth-card-forgot,
.auth-page-invitation .auth-card-invitation,
.auth-page-mfa .auth-card-mfa {
  width: 100%;
  border: 1px solid var(--metab-border-soft);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--metab-card-shadow);
  gap: 0;
  padding: 42px 56px 40px;
  backdrop-filter: none;
}

.auth-login-brand {
  gap: 18px;
  margin: 0 0 30px;
}

.auth-login-brand-header {
  border-bottom: 0;
  padding-bottom: 0;
}

.auth-login-text-brand,
.auth-login-product-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.auth-login-text-brand::before {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--metab-blue);
  box-shadow:
    15px 0 #d6eafa,
    30px 0 #d6eafa,
    45px 0 var(--metab-blue),
    0 15px var(--metab-blue),
    15px 15px var(--metab-blue),
    30px 15px #d6eafa,
    45px 15px var(--metab-blue),
    0 30px var(--metab-blue),
    15px 30px #d6eafa,
    30px 30px var(--metab-blue),
    45px 30px var(--metab-blue),
    0 45px var(--metab-blue),
    15px 45px #d6eafa,
    30px 45px #d6eafa,
    45px 45px var(--metab-blue);
  content: "";
  margin: 0 45px 48px 0;
}

.auth-login-product-mark {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.auth-login-product-mark::before {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--metab-blue);
  box-shadow:
    15px 0 #d6eafa,
    30px 0 #d6eafa,
    45px 0 var(--metab-blue),
    0 15px var(--metab-blue),
    15px 15px var(--metab-blue),
    30px 15px #d6eafa,
    45px 15px var(--metab-blue),
    0 30px var(--metab-blue),
    15px 30px #d6eafa,
    30px 30px var(--metab-blue),
    45px 30px var(--metab-blue),
    0 45px var(--metab-blue),
    15px 45px #d6eafa,
    30px 45px #d6eafa,
    45px 45px var(--metab-blue);
  content: "";
}

.auth-login-brand h1 {
  background: none;
  color: var(--metab-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  -webkit-text-fill-color: currentColor;
}

.auth-login-product-title {
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.auth-login-product-title::after {
  content: "MetaB";
  color: var(--metab-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-login-brand p {
  color: var(--metab-soft);
  font-size: 14px;
  font-style: normal;
  margin: 4px 0 0;
}

.auth-page-login .auth-login-brand h2,
.auth-page-forgot .auth-login-brand h2,
.auth-page-invitation .auth-login-brand h2 {
  color: #4a5570;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.auth-page-login .auth-form,
.auth-page-forgot .auth-form,
.auth-page-invitation .auth-form,
.auth-page-mfa .legacy-mfa-form {
  gap: 0;
}

.auth-page-login .auth-form label,
.auth-page-forgot .auth-form label,
.auth-page-invitation .auth-form label,
.auth-page-mfa .legacy-mfa-form label {
  color: var(--metab-text);
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-page-login .auth-form input,
.auth-page-forgot .auth-form input,
.auth-page-invitation .auth-form input,
.auth-page-mfa .legacy-mfa-form input {
  min-height: 40px;
  border: 1px solid var(--metab-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--metab-text);
  font-size: 14px;
  padding: 9px 12px;
}

.auth-page-login .auth-form input::placeholder,
.auth-page-forgot .auth-form input::placeholder,
.auth-page-invitation .auth-form input::placeholder,
.auth-page-mfa .legacy-mfa-form input::placeholder {
  color: var(--metab-muted);
}

.auth-page-login .auth-form input:focus,
.auth-page-forgot .auth-form input:focus,
.auth-page-invitation .auth-form input:focus,
.auth-page-mfa .legacy-mfa-form input:focus {
  border-color: var(--metab-blue);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(80, 158, 226, 0.2);
}

.auth-page-login .auth-login-submit,
.auth-page-forgot .auth-login-submit,
.auth-page-invitation .auth-card .button:not(.button-secondary),
.auth-page-mfa .legacy-mfa-verify {
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid var(--metab-blue);
  border-radius: 6px;
  background: var(--metab-blue);
  box-shadow: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.auth-page-login .auth-login-submit:hover:not(:disabled),
.auth-page-forgot .auth-login-submit:hover:not(:disabled),
.auth-page-invitation .auth-card .button:not(.button-secondary):hover:not(:disabled),
.auth-page-mfa .legacy-mfa-verify:hover:not(:disabled) {
  background: var(--metab-blue-strong);
  box-shadow: none;
  transform: none;
}

.auth-page-login .auth-login-submit:disabled,
.auth-page-forgot .auth-login-submit:disabled,
.auth-page-invitation .auth-card .button:not(.button-secondary):disabled,
.auth-page-mfa .legacy-mfa-verify:disabled {
  border-color: var(--metab-border);
  background: rgba(7, 23, 34, 0.05);
  color: rgba(7, 23, 34, 0.44);
}

.auth-page-login .auth-login-options,
.auth-page-forgot .auth-login-options,
.auth-page-login .auth-register-sentence {
  color: var(--metab-soft);
  margin-top: 20px;
}

.auth-page-login .auth-login-options a,
.auth-page-login .auth-register-sentence a,
.auth-page-login .auth-link-row a,
.auth-page-forgot .auth-link-row a {
  color: #4a5570;
  font-size: 14px;
  font-weight: 500;
}

.auth-page-login .error-banner,
.auth-page-forgot .error-banner,
.auth-page-invitation .error-banner,
.auth-page-mfa .legacy-mfa-error {
  border-radius: 4px;
}

.brand-title {
  color: transparent;
  font-size: 0;
}

.brand-title::after {
  content: "MetaB";
  color: var(--metab-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-mark,
.auth-brand-mark {
  border-radius: 6px;
  background: var(--metab-blue);
  color: #ffffff;
}

.auth-page-mfa .legacy-mfa-panel {
  gap: 0;
}

.auth-page-mfa .legacy-mfa-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  border-bottom: 0;
  margin: 0 0 30px;
  padding-bottom: 0;
  text-align: center;
}

.auth-page-mfa .legacy-mfa-brand::before {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--metab-blue);
  box-shadow:
    15px 0 #d6eafa,
    30px 0 #d6eafa,
    45px 0 var(--metab-blue),
    0 15px var(--metab-blue),
    15px 15px var(--metab-blue),
    30px 15px #d6eafa,
    45px 15px var(--metab-blue),
    0 30px var(--metab-blue),
    15px 30px #d6eafa,
    30px 30px var(--metab-blue),
    45px 30px var(--metab-blue),
    0 45px var(--metab-blue),
    15px 45px #d6eafa,
    30px 45px #d6eafa,
    45px 45px var(--metab-blue);
  content: "";
  margin: 0 45px 48px 0;
}

.auth-page-mfa .legacy-mfa-brand::after {
  content: "MetaB";
  color: var(--metab-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-page-mfa .legacy-mfa-logo,
.auth-page-mfa .legacy-mfa-brand-text {
  display: none;
}

.auth-page-mfa .legacy-mfa-header {
  margin-bottom: 24px;
  text-align: center;
}

.auth-page-mfa .legacy-mfa-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: #d6eafa;
  color: var(--metab-blue-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 14px;
}

.auth-page-mfa .legacy-mfa-header h2 {
  color: #4a5570;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.auth-page-mfa .legacy-mfa-header p,
.auth-page-mfa .legacy-mfa-help p {
  color: var(--metab-soft);
  font-size: 14px;
  line-height: 1.5;
}

.auth-page-mfa .legacy-mfa-help {
  border: 1px solid var(--metab-border-soft);
  border-radius: 6px;
  background: var(--metab-page);
  margin: 24px 0;
  padding: 18px;
  text-align: center;
}

.auth-page-mfa .legacy-mfa-resend,
.auth-page-mfa .legacy-mfa-backup-toggle,
.auth-page-mfa .legacy-mfa-login-link button {
  color: #4a5570;
  font-size: 14px;
  font-weight: 500;
}

.auth-page-mfa .legacy-mfa-resend {
  border: 1px solid var(--metab-border);
  border-radius: 6px;
  background: #ffffff;
  padding: 8px 14px;
  text-decoration: none;
}

.auth-page-mfa .legacy-mfa-resend:hover:not(:disabled) {
  border-color: var(--metab-blue);
  background: #eef6fd;
}

.auth-page-mfa .legacy-mfa-login-link {
  border-top: 1px solid var(--metab-border-soft);
  padding-top: 20px;
  text-align: center;
}

@media (max-width: 560px) {
  .auth-page-login .auth-card-login,
  .auth-page-forgot .auth-card-forgot,
  .auth-page-invitation .auth-card-invitation,
  .auth-page-mfa .auth-card-mfa {
    padding: 34px 26px;
  }
}

/* Vite dev injects component CSS after static links, so these keep the source-run theme stable. */
html body .auth-page.auth-page-login,
html body .auth-page.auth-page-forgot,
html body .auth-page.auth-page-invitation,
html body .auth-page.auth-page-mfa {
  background: var(--metab-page) !important;
  color: var(--metab-text) !important;
  font-family: Lato, Arial, sans-serif !important;
}

html body .auth-page-login .auth-card-login,
html body .auth-page-forgot .auth-card-forgot,
html body .auth-page-invitation .auth-card-invitation,
html body .auth-page-mfa .auth-card-mfa {
  border: 1px solid var(--metab-border-soft) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: var(--metab-card-shadow) !important;
  padding: 42px 56px 40px !important;
}

html body .auth-login-brand-header {
  display: grid !important;
  justify-items: center !important;
  gap: 12px !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html body .auth-login-brand-header:has(.auth-login-logo)::before {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: var(--metab-blue) !important;
  box-shadow:
    15px 0 #d6eafa,
    30px 0 #d6eafa,
    45px 0 var(--metab-blue),
    0 15px var(--metab-blue),
    15px 15px var(--metab-blue),
    30px 15px #d6eafa,
    45px 15px var(--metab-blue),
    0 30px var(--metab-blue),
    15px 30px #d6eafa,
    30px 30px var(--metab-blue),
    45px 30px var(--metab-blue),
    0 45px var(--metab-blue),
    15px 45px #d6eafa,
    30px 45px #d6eafa,
    45px 45px var(--metab-blue) !important;
  content: "" !important;
  margin: 0 45px 48px 0 !important;
}

html body .auth-login-brand-header:has(.auth-login-logo)::after {
  content: "MetaB" !important;
  color: var(--metab-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html body .auth-login-logo {
  display: none !important;
}

html body .auth-page-mfa .auth-layout {
  width: min(100%, 494px) !important;
  z-index: 1 !important;
  grid-template-columns: 1fr !important;
}

html body .auth-page-mfa .legacy-mfa-panel {
  gap: 0 !important;
}

html body .auth-page-mfa .legacy-mfa-brand {
  display: grid !important;
  justify-items: center !important;
  gap: 12px !important;
  border-bottom: 0 !important;
  margin: 0 0 30px !important;
  padding-bottom: 0 !important;
  text-align: center !important;
}

html body .auth-page-mfa .legacy-mfa-brand::before {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: var(--metab-blue) !important;
  box-shadow:
    15px 0 #d6eafa,
    30px 0 #d6eafa,
    45px 0 var(--metab-blue),
    0 15px var(--metab-blue),
    15px 15px var(--metab-blue),
    30px 15px #d6eafa,
    45px 15px var(--metab-blue),
    0 30px var(--metab-blue),
    15px 30px #d6eafa,
    30px 30px var(--metab-blue),
    45px 30px var(--metab-blue),
    0 45px var(--metab-blue),
    15px 45px #d6eafa,
    30px 45px #d6eafa,
    45px 45px var(--metab-blue) !important;
  content: "" !important;
  margin: 0 45px 48px 0 !important;
}

html body .auth-page-mfa .legacy-mfa-brand::after {
  content: "MetaB" !important;
  color: var(--metab-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html body .auth-page-mfa .legacy-mfa-logo,
html body .auth-page-mfa .legacy-mfa-brand-text {
  display: none !important;
}

html body .auth-page-mfa .legacy-mfa-header {
  margin-bottom: 24px !important;
  text-align: center !important;
}

html body .auth-page-mfa .legacy-mfa-icon {
  display: inline-grid !important;
  width: 40px !important;
  height: 40px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #d6eafa !important;
  color: var(--metab-blue-strong) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 0 0 14px !important;
}

html body .auth-page-mfa .legacy-mfa-header h2 {
  color: #4a5570 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}

html body .auth-page-mfa .legacy-mfa-header p,
html body .auth-page-mfa .legacy-mfa-help p {
  color: var(--metab-soft) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

html body .auth-page-mfa .legacy-mfa-form label {
  color: var(--metab-text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
}

html body .auth-page-mfa .legacy-mfa-form input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  letter-spacing: 3px !important;
  text-align: center !important;
}

html body .auth-page-mfa .legacy-mfa-verify:hover:not(:disabled) {
  background: var(--metab-blue-strong) !important;
  box-shadow: none !important;
  transform: none !important;
}

html body .auth-page-mfa .legacy-mfa-verify:disabled {
  border-color: var(--metab-border) !important;
  background: rgba(7, 23, 34, 0.05) !important;
  color: rgba(7, 23, 34, 0.44) !important;
}

html body .auth-page-mfa .legacy-mfa-help {
  border: 1px solid var(--metab-border-soft) !important;
  border-radius: 6px !important;
  background: var(--metab-page) !important;
  margin: 24px 0 !important;
  padding: 18px !important;
  text-align: center !important;
}

html body .auth-page-mfa .legacy-mfa-resend,
html body .auth-page-mfa .legacy-mfa-backup-toggle,
html body .auth-page-mfa .legacy-mfa-login-link button {
  color: #4a5570 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

html body .auth-page-mfa .legacy-mfa-resend {
  border: 1px solid var(--metab-border) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
}

html body .auth-page-mfa .legacy-mfa-resend:hover:not(:disabled) {
  border-color: var(--metab-blue) !important;
  background: #eef6fd !important;
}

html body .auth-page-mfa .legacy-mfa-login-link {
  border-top: 1px solid var(--metab-border-soft) !important;
  padding-top: 20px !important;
  text-align: center !important;
}

html body .auth-login-product-brand {
  display: grid !important;
  justify-items: center !important;
  gap: 12px !important;
}

html body .auth-login-product-mark {
  position: relative !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
}

html body .auth-login-product-mark::before {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: var(--metab-blue) !important;
  box-shadow:
    15px 0 #d6eafa,
    30px 0 #d6eafa,
    45px 0 var(--metab-blue),
    0 15px var(--metab-blue),
    15px 15px var(--metab-blue),
    30px 15px #d6eafa,
    45px 15px var(--metab-blue),
    0 30px var(--metab-blue),
    15px 30px #d6eafa,
    30px 30px var(--metab-blue),
    45px 30px var(--metab-blue),
    0 45px var(--metab-blue),
    15px 45px #d6eafa,
    30px 45px #d6eafa,
    45px 45px var(--metab-blue) !important;
  content: "" !important;
}

html body .auth-login-product-title {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

html body .auth-login-product-title::after {
  content: "MetaB" !important;
  color: var(--metab-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html body .auth-page-login .auth-login-brand h2,
html body .auth-page-forgot .auth-login-brand h2,
html body .auth-page-invitation .auth-login-brand h2 {
  color: #4a5570 !important;
  font-size: 20px !important;
}

html body .auth-page-login .auth-form input,
html body .auth-page-forgot .auth-form input,
html body .auth-page-invitation .auth-form input,
html body .auth-page-mfa .legacy-mfa-form input {
  min-height: 40px !important;
  border: 1px solid var(--metab-border) !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: var(--metab-text) !important;
  font-size: 14px !important;
}

html body .auth-page-login .auth-login-submit,
html body .auth-page-forgot .auth-login-submit,
html body .auth-page-invitation .auth-card .button:not(.button-secondary),
html body .auth-page-mfa .legacy-mfa-verify {
  min-height: 40px !important;
  border-color: var(--metab-blue) !important;
  border-radius: 6px !important;
  background: var(--metab-blue) !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

html body .auth-page-login .auth-login-options a,
html body .auth-page-login .auth-register-sentence a,
html body .auth-page-login .auth-link-row a,
html body .auth-page-forgot .auth-link-row a {
  color: #4a5570 !important;
}

@media (max-width: 560px) {
  html body .auth-page-login .auth-card-login,
  html body .auth-page-forgot .auth-card-forgot,
  html body .auth-page-invitation .auth-card-invitation,
  html body .auth-page-mfa .auth-card-mfa {
    padding: 34px 26px !important;
  }
}
