.form-entry-aligned {
  --form-entry-gutter: 34px;
  --form-entry-icon-edge: 8px;
  position: relative;
  text-align: center !important;
}

.form-entry-aligned > svg[data-form-entry-icon] {
  position: absolute;
  top: 50%;
  left: var(--form-entry-icon-edge);
  transform: translateY(-50%);
  margin: 0 !important;
}

.form-entry-aligned > .form-entry-centered-caption {
  display: block;
  min-inline-size: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.form-entry-aligned:not(.form-entry-preserve-size) {
  box-sizing: border-box;
  padding-inline: var(--form-entry-gutter) !important;
  justify-content: center;
}

.form-entry-aligned.line-link::after {
  position: absolute;
  right: var(--form-entry-icon-edge);
  top: 50%;
  transform: translateY(-50%);
}

/* Keep both intrinsic button dimensions and the shared heights in entry groups. */
.form-entry-aligned.form-entry-preserve-size {
  direction: ltr;
  justify-content: flex-start !important;
}

.form-entry-aligned.form-entry-preserve-size > svg[data-form-entry-icon] {
  position: relative;
  top: auto;
  left: -10px;
  transform: none;
}

.form-entry-aligned.email-verification-standalone-entry > svg[data-form-entry-icon] {
  margin-inline-end: 8px !important;
}

.form-entry-aligned.email-verification-standalone-entry {
  --form-entry-gutter: 40px;
}

.form-entry-preserve-size > .form-entry-caption-slot::before,
.form-entry-preserve-size > .form-entry-arrow-slot::before {
  content: attr(data-button-footprint);
  visibility: hidden;
}

html[dir="rtl"] .form-entry-preserve-size > .form-entry-caption-slot,
html[dir="rtl"] .form-entry-aligned .email-verification-label {
  direction: rtl;
}

.form-entry-preserve-size > .form-entry-caption-slot > .form-entry-centered-caption,
a.form-entry-aligned .email-verification-label-fit {
  position: absolute;
  top: 50%;
  left: var(--form-entry-gutter) !important;
  right: var(--form-entry-gutter) !important;
  transform: translateY(-50%);
}

.form-entry-preserve-size > .form-entry-caption-slot > .form-entry-centered-caption {
  line-height: 1.2;
}

a.form-entry-aligned .email-verification-label-slot {
  position: static;
}

a.form-entry-aligned .email-verification-label-fit {
  container-type: inline-size;
}

a.form-entry-aligned .email-verification-label {
  font-size: min(1em, calc(100cqi / var(--email-label-width, 13.1)));
}

.form-entry-arrow-slot.is-svg {
  inline-size: 18px;
  block-size: 18px;
  flex: 0 0 18px;
}

.form-entry-arrow-slot > :is(svg, .arrow) {
  position: absolute;
  top: 50%;
  right: var(--form-entry-icon-edge);
  margin: 0 !important;
  transform: translateY(-50%);
}

@media (max-width: 375px) {
  .form-entry-actions .form-entry-aligned.form-entry-preserve-size {
    --form-entry-gutter: 31px;
  }

  .form-entry-actions .form-entry-aligned.form-entry-preserve-size > svg[data-form-entry-icon] {
    left: -12px;
  }
}

:root:lang(ar) { --email-label-width: 7.9; }
:root:lang(bg) { --email-label-width: 13.1; }
:root:lang(cs) { --email-label-width: 8.5; }
:root:lang(da) { --email-label-width: 8.2; }
:root:lang(de) { --email-label-width: 7.6; }
:root:lang(el) { --email-label-width: 8.6; }
:root:lang(es) { --email-label-width: 10.5; }
:root:lang(et) { --email-label-width: 8.1; }
:root:lang(fi) { --email-label-width: 10.2; }
:root:lang(fr) { --email-label-width: 7.9; }
:root:lang(ga) { --email-label-width: 6.1; }
:root:lang(he) { --email-label-width: 5.7; }
:root:lang(hr) { --email-label-width: 7.6; }
:root:lang(hu) { --email-label-width: 6.8; }
:root:lang(it) { --email-label-width: 9.6; }
:root:lang(lt) { --email-label-width: 8.1; }
:root:lang(lv) { --email-label-width: 8.0; }
:root:lang(mk) { --email-label-width: 10.8; }
:root:lang(mt) { --email-label-width: 9.1; }
:root:lang(nb) { --email-label-width: 8.5; }
:root:lang(nl) { --email-label-width: 6.0; }
:root:lang(pl) { --email-label-width: 6.8; }
:root:lang(pt) { --email-label-width: 9.1; }
:root:lang(ro) { --email-label-width: 8.5; }
:root:lang(ru) { --email-label-width: 12.0; }
:root:lang(sk) { --email-label-width: 8.7; }
:root:lang(sl) { --email-label-width: 9.7; }
:root:lang(sq) { --email-label-width: 9.4; }
:root:lang(sr) { --email-label-width: 8.3; }
:root:lang(sv) { --email-label-width: 8.0; }
:root:lang(tr) { --email-label-width: 7.2; }
:root:lang(uk) { --email-label-width: 11.7; }
:root:lang(en-US) { --email-label-width: 7.1; }
