/*
 * Native register form styles.
 *
 * Every length is in px on purpose. The app page renders on a 14px root font
 * size with its own px spacing scale, so a rem here would resolve against the
 * WordPress root instead and every value would drift. The resolved values are
 * in the fidelity spec §6 (§6.12 for the two reasons the numbers look odd).
 *
 * Two breakpoints, both from the spec: 480px is what the spec calls "sm", and
 * 1024px is the hand-written query that shows the testimonial column. The
 * 1024px one only ever touches .lt-register-form__column--panel.
 */

/* Open Sans Variable, self-hosted from @fontsource-variable/open-sans. */
@font-face {
    font-family: 'Open Sans Variable';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/open-sans-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

@font-face {
    font-family: 'Open Sans Variable';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/open-sans-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * The register page is served as its own document with the theme stylesheets
 * and global-styles dequeued, and global-styles was the only rule setting
 * body { margin: 0 }. Without this the browser default 8px margin comes back
 * and the 100vh shell overflows. Unscoped is safe: this file only ever loads on
 * a page the plugin owns completely.
 */
html,
body {
    margin: 0;
    padding: 0;
    background: #fff;
}

.lt-register-form {
    --lt-register-blue: #0f8bff;
    --lt-register-blue-hover: #007ef5;
    --lt-register-blue-active: #0071db;
    --lt-register-red: #d41128;
    --lt-register-text: #1a202c;
    --lt-register-text-high: #18212c;
    --lt-register-text-medium: #3c4147;
    --lt-register-text-low: #6c737a;
    --lt-register-input-border: #a0aec0;
    --lt-register-border-hover: rgba(0, 16, 31, 0.3);
    --lt-register-select-border: rgba(0, 16, 31, 0.2);
    --lt-register-checkbox-border: #e2e8f0;
    --lt-register-lang-border: #e0e2e4;
    --lt-register-overlay-5: rgba(0, 16, 31, 0.05);
    --lt-register-overlay-10: rgba(0, 16, 31, 0.1);
    --lt-register-overlay-40: rgba(0, 16, 31, 0.4);
    --lt-register-surface: var(--wp--preset--color--white, #ffffff);
    --lt-register-radius: 5.25px;
    --lt-register-radius-checkbox: 3.5px;
    --lt-register-radius-card: 21px;
    --lt-register-font: 'Open Sans Variable', 'Open Sans',
        var(--wp--preset--font-family--body, sans-serif);
    --lt-register-transition: 200ms;
    box-sizing: border-box;
    font-family: var(--lt-register-font);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    color: var(--lt-register-text);
}

.lt-register-form *,
.lt-register-form *::before,
.lt-register-form *::after {
    box-sizing: border-box;
}

/* The hidden attribute switches the steps, the error banner and the two
   testimonials. A theme rule on p or div would beat the browser default for it,
   so it is repeated here. */
.lt-register-form [hidden] {
    display: none;
}

.lt-register-form__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Page frame ------------------------------------------------------------- */

.lt-register-form__columns {
    display: flex;
    flex-direction: row;
    /* The app fills the viewport: the form block is centred vertically and the
       testimonial reaches the fold. How much height the block really gets is up
       to the WordPress page template. */
    min-height: 100vh;
    min-height: 100dvh;
}

.lt-register-form__column--main {
    display: flex;
    flex-direction: column;
    /* The app's left column is flex-basis auto, whose max-content resolves to
       545.2px in the real layout (measured against the live page; ~449px
       content contribution + 2×48px padding). 545px reproduces live within
       0.1px at 1024–1440; the spec's 512px "lg" basis is the inner content
       cap, not this column's basis. */
    flex: 1 1 545px;
    min-width: 0;
}

.lt-register-form__scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* The app column is its own scroll area; on a WordPress page the document
       scrolls, so only the safe-area padding is kept. */
    padding-bottom: env(safe-area-inset-bottom);
}

.lt-register-form__gutter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex: 1 1 auto;
    padding: 24px 24px 16px;
}

.lt-register-form__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 512px;
    /* The browser says the outer 512px column wins at every width, so this is
       also the cap of the content column below. */
    max-width: 512px;
    min-width: 0;
}

.lt-register-form__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 16px;
}

.lt-register-form__step {
    align-self: stretch;
    width: 100%;
}

.lt-register-form__body {
    /* Measured on the live page: min(available, 512px) at every width. The
       fidelity spec's 640px reading is wrong. */
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

.lt-register-form__step--processing .lt-register-form__body,
.lt-register-form__step--success .lt-register-form__body {
    max-width: 384px;
}

/* Always rendered and always empty, exactly as in the app. It is where the 40px
   gap between the header and the form comes from. */
.lt-register-form__subheading {
    margin-bottom: 40px;
}

/* Logo ------------------------------------------------------------------- */

.lt-register-form__logo-wrap {
    /* The app centres the logo block and then pushes it left by 16px. The
       bottom value is 36px, not the 32px of the spec: measured live, the gap
       from the logo to the small title is 41px, and 32px plus the 4px link
       padding lands 4px short. */
    margin: 0 16px 36px 0;
}

.lt-register-form__logo {
    display: inline-flex;
    padding: 4px;
}

.lt-register-form__logo-svg {
    display: block;
    width: 126px;
    height: 40px;
}

/* Header ----------------------------------------------------------------- */

.lt-register-form__header {
    margin: 0;
    text-align: center;
}

.lt-register-form__small-title {
    margin: 0;
    padding: 0 0 8px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lt-register-text-medium);
}

.lt-register-form__title {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--lt-register-text);
    text-align: center;
}

/* Error banner ----------------------------------------------------------- */

.lt-register-form__banner {
    margin: 0 0 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lt-register-red);
}

/* Field list ------------------------------------------------------------- */

.lt-register-form__fields {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 8px;
    margin: 0 0 24px;
}

.lt-register-form__field {
    flex: 1 1 100%;
    min-width: 0;
}

/* The first and last name share a row and wrap by the width the row actually
   has, not by the viewport: two 216px boxes plus the 8px gap need 440px, so the
   pair stacks below that. Live wraps in the same place — one column at 375, 480
   and 1024 to 1280 (the testimonial narrows the form there), two columns from
   600 to 1000 and again from 1366. */
.lt-register-form__field--first-name,
.lt-register-form__field--last-name {
    flex: 1 1 216px;
    min-width: 216px;
}

.lt-register-form__control-wrap {
    position: relative;
    isolation: isolate;
}

/* Controls --------------------------------------------------------------- */

.lt-register-form__control {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: var(--lt-register-text-high);
    background-color: var(--lt-register-surface);
    /* The app page clips the background to the text so a password manager
       cannot paint over the floating label. */
    -webkit-background-clip: text;
    background-clip: text;
    border: 1px solid var(--lt-register-input-border);
    border-radius: var(--lt-register-radius);
    z-index: 0;
    transition:
        border-color var(--lt-register-transition),
        box-shadow var(--lt-register-transition);
}

.lt-register-form__control:-webkit-autofill {
    -webkit-text-fill-color: var(--lt-register-text-high);
}

.lt-register-form__control::placeholder {
    color: transparent;
    opacity: 0;
}

select.lt-register-form__control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    border-color: var(--lt-register-select-border);
}

/* The chevron sits on the wrapper, not on the select: the select clips its own
   background to the text. */
.lt-register-form__control-wrap:has(> select.lt-register-form__control)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 8px;
    width: 24px;
    height: 48px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%236c737a'%20d='M16.59%208.59L12%2013.17%207.41%208.59%206%2010l6%206%206-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.lt-register-form__field--password .lt-register-form__control {
    /* Room for the toggle button slot. */
    padding-right: 48px;
}

.lt-register-form__control:hover {
    border-color: var(--lt-register-border-hover);
}

.lt-register-form__control[aria-invalid='true'],
.lt-register-form__field--invalid .lt-register-form__control {
    border-color: var(--lt-register-red);
    box-shadow: 0 0 0 1px var(--lt-register-red);
}

.lt-register-form__control:focus {
    outline: none;
    border-color: var(--lt-register-blue);
    box-shadow: 0 0 0 1px var(--lt-register-blue);
}

/* Floating label --------------------------------------------------------- */

.lt-register-form__label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    margin: 12px 18px;
    padding: 0 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lt-register-text-low);
    background-color: var(--lt-register-surface);
    pointer-events: none;
    transform-origin: left top;
    transition: transform var(--lt-register-transition);
}

/* Focus floats the label for text inputs only: the app page has no focus-within
   float on selects, a select floats its label once a real option is chosen.
   :placeholder-shown never matches a select either, so that condition is bound
   to input as well. */
.lt-register-form__control-wrap:has(
        > input.lt-register-form__control
    ):focus-within
    .lt-register-form__label,
input.lt-register-form__control:not(:placeholder-shown)
    ~ .lt-register-form__label,
select.lt-register-form__control:not(:has(> option[value='']:checked))
    ~ .lt-register-form__label {
    transform: scale(0.85) translateY(-28px);
}

/* Live turns the label red while the field is invalid and blue while it has
   focus. Focus is written last so it wins when a field is both, which is also
   how the border behaves. */
.lt-register-form__control-wrap:has(
        > .lt-register-form__control[aria-invalid='true']
    )
    .lt-register-form__label,
.lt-register-form__field--invalid .lt-register-form__label {
    color: var(--lt-register-red);
}

.lt-register-form__control-wrap:has(> .lt-register-form__control:focus)
    .lt-register-form__label {
    color: var(--lt-register-blue);
}

/* Password toggle -------------------------------------------------------- */

.lt-register-form__password-toggle {
    /* 36px button centred in the 48px slot the app page reserves. */
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: var(--lt-register-radius);
    cursor: pointer;
    transition: background-color var(--lt-register-transition);
}

.lt-register-form__password-toggle:hover,
.lt-register-form__password-toggle:active {
    background-color: var(--lt-register-overlay-5);
}

.lt-register-form__password-toggle:active:hover {
    background-color: var(--lt-register-overlay-10);
}

.lt-register-form__password-toggle:focus-visible {
    outline: 3px solid var(--lt-register-blue);
    outline-offset: -1px;
}

.lt-register-form__password-toggle-icon {
    display: block;
    width: 24px;
    height: 24px;
    /* Both eye icons are drawn in #667078 and never follow the text colour. */
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3E%3Cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.813%209.754C15.297%208.658%2013.675%208%2012%208c-1.675%200-3.297.658-4.813%201.754-.532.384-1.016.799-1.445%201.218-.27.264-.469.48-.593.627a.614.614%200%200%200%200%20.802c.12.143.323.362.593.626.429.42.913.835%201.445%201.22C8.703%2015.341%2010.325%2016%2012%2016c1.675%200%203.297-.658%204.813-1.754.532-.384%201.016-.799%201.445-1.218.27-.264.469-.48.593-.627a.614.614%200%200%200%200-.802%209.371%209.371%200%200%200-.593-.626c-.429-.42-.913-.835-1.445-1.22ZM12%2015a3%203%200%201%200%200-6%203%203%200%200%200%200%206Z'%20fill='%23667078'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2'%20fill='%23667078'/%3E%3Cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010Zm0-2a8%208%200%201%200%200-16%208%208%200%200%200%200%2016Z'%20fill='%23667078'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.lt-register-form__password-toggle[aria-pressed='true']
    .lt-register-form__password-toggle-icon {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3E%3Cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.813%209.754C15.297%208.658%2013.675%208%2012%208c-1.675%200-3.297.658-4.813%201.754-.532.384-1.016.799-1.445%201.218-.27.264-.469.48-.593.627a.614.614%200%200%200%200%20.802c.12.143.323.362.593.626.429.42.913.835%201.445%201.22C8.703%2015.341%2010.325%2016%2012%2016c1.675%200%203.297-.658%204.813-1.754.532-.384%201.016-.799%201.445-1.218.27-.264.469-.48.593-.627a.614.614%200%200%200%200-.802%209.371%209.371%200%200%200-.593-.626c-.429-.42-.913-.835-1.445-1.22ZM12%2015a3%203%200%201%200%200-6%203%203%200%200%200%200%206Z'%20fill='%23667078'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2'%20fill='%23667078'/%3E%3Cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010Zm-5.135-3.865a8%208%200%200%200%2011.27-11.27l-11.27%2011.27Zm-1.362-1.466A8%208%200%200%201%2016.669%205.503L5.503%2016.669Z'%20fill='%23667078'/%3E%3C/svg%3E");
}

/* Password rules --------------------------------------------------------- */

.lt-register-form__field--password {
    position: relative;
}

.lt-register-form__password-rules {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: 12px 16px;
    background-color: var(--lt-register-surface);
    border: 0;
    border-radius: var(--lt-register-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

/* The script drops the hidden attribute while the input has focus. The same
   state is styled here so the popover also works without the script. */
.lt-register-form__field--password:has(.lt-register-form__control:focus)
    .lt-register-form__password-rules[hidden] {
    display: block;
}

.lt-register-form__password-rules ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lt-register-form__password-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lt-register-text);
}

.lt-register-form__password-rule-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background-color: var(--lt-register-blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%3E%3Ccircle%20cx='12'%20cy='12'%20r='4'%20stroke='%23000'%20stroke-width='2'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%3E%3Ccircle%20cx='12'%20cy='12'%20r='4'%20stroke='%23000'%20stroke-width='2'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.lt-register-form__password-rule[data-satisfied='true']
    .lt-register-form__password-rule-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%3E%3Cpolygon%20fill='%23000'%20points='5.5%2011.9993304%2014%203.49933039%2012.5%202%205.5%208.99933039%201.5%204.9968652%200%206.49933039'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%3E%3Cpolygon%20fill='%23000'%20points='5.5%2011.9993304%2014%203.49933039%2012.5%202%205.5%208.99933039%201.5%204.9968652%200%206.49933039'/%3E%3C/svg%3E");
}

/* Error line ------------------------------------------------------------- */

.lt-register-form__error {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: normal;
    color: var(--lt-register-red);
}

.lt-register-form__error:empty {
    display: none;
}

/* Checkboxes ------------------------------------------------------------- */

.lt-register-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.lt-register-form__checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    /* 1.15rem on a 14px root. */
    width: 16.1px;
    height: 16.1px;
    /* Keeps the box on the first line of a wrapping label. */
    margin: 2px 0 0;
    background-color: var(--lt-register-surface);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    border: 1px solid var(--lt-register-checkbox-border);
    border-radius: var(--lt-register-radius-checkbox);
    cursor: pointer;
    transition: box-shadow var(--lt-register-transition);
}

.lt-register-form__checkbox-input:checked {
    background-color: var(--lt-register-blue);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2010'%3E%3Cpolyline%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20points='1.5%206%204.5%209%2010.5%201'/%3E%3C/svg%3E");
    border-color: var(--lt-register-blue);
}

.lt-register-form__checkbox-input:checked:hover {
    background-color: var(--lt-register-blue-hover);
    border-color: var(--lt-register-blue-hover);
}

.lt-register-form__checkbox-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.6);
}

.lt-register-form__checkbox-input[aria-invalid='true'],
.lt-register-form__field--invalid .lt-register-form__checkbox-input {
    border-color: var(--lt-register-red);
}

.lt-register-form__checkbox-label {
    color: var(--lt-register-text);
}

.lt-register-form__checkbox-label a {
    color: inherit;
    text-decoration: underline;
}

.lt-register-form__checkbox-label a:hover {
    color: var(--lt-register-text-high);
}

/* Honeypot --------------------------------------------------------------- */

/* Off screen, not display:none: bots skip a field they can tell is hidden. */
.lt-register-form__honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* reCAPTCHA -------------------------------------------------------------- */

.lt-register-form__field--recaptcha {
    margin-bottom: 32px;
}

.lt-register-form__recaptcha {
    display: flex;
    justify-content: center;
}

.lt-register-form__field--recaptcha .lt-register-form__error {
    text-align: center;
}

/* Submit ----------------------------------------------------------------- */

.lt-register-form__step--1 .lt-register-form__actions {
    margin-bottom: 32px;
}

.lt-register-form__step--2 .lt-register-form__actions {
    margin-bottom: 32px;
}

.lt-register-form__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    min-width: 56px;
    padding: 0 32px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    background-color: var(--lt-register-blue);
    border: 0;
    border-radius: var(--lt-register-radius);
    cursor: pointer;
    transition:
        background-color var(--lt-register-transition),
        border-color var(--lt-register-transition),
        color var(--lt-register-transition),
        opacity var(--lt-register-transition),
        box-shadow var(--lt-register-transition),
        transform var(--lt-register-transition);
}

.lt-register-form__submit:hover,
.lt-register-form__submit:focus-visible {
    color: #ffffff;
    background-color: var(--lt-register-blue-hover);
}

.lt-register-form__submit:active {
    background-color: var(--lt-register-blue-active);
}

.lt-register-form__submit:active:hover {
    background-color: var(--lt-register-blue-hover);
}

.lt-register-form__submit:focus-visible {
    box-shadow: none;
    outline: 3px solid var(--lt-register-blue);
    outline-offset: 3px;
}

/* Busy, not disabled: the button keeps its focus and its click handler, and the
   script drops re-entrant submits. */
.lt-register-form__submit[aria-disabled='true'] {
    color: transparent;
    opacity: 0.4;
    cursor: not-allowed;
}

.lt-register-form__submit[aria-disabled='true']::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 99999px;
    animation: lt-register-form-spin 0.45s linear infinite;
}

@keyframes lt-register-form-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Language picker --------------------------------------------------------- */

/* The app's pill: globe icon and a borderless select inside one rounded
   outline, centered between the submit button and the sign in line. Sizes are
   the app's Chakra values (text lg 18px, control height 32px, icon 24px). */

.lt-register-form__lang {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}

.lt-register-form__lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    color: var(--lt-register-text);
    border: 1px solid var(--lt-register-lang-border);
    border-radius: 99999px;
}

.lt-register-form__lang-pill:focus-within {
    outline: 3px solid var(--lt-register-blue);
    outline-offset: 2px;
}

.lt-register-form__lang-icon {
    flex: none;
    width: 24px;
    height: 24px;
    color: var(--lt-register-text-low);
}

/* The select draws no chrome of its own; the chevron is the app's, inlined
   because a background image cannot follow currentColor. */
.lt-register-form__lang-select {
    height: 32px;
    padding: 0 32px 0 0;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.2;
    color: inherit;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a202c' d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
}

.lt-register-form__lang-select:focus {
    outline: none;
}

/* Sign in link ----------------------------------------------------------- */

.lt-register-form__sign-in {
    margin: 0 0 32px;
    font-size: 16px;
    text-align: center;
}

.lt-register-form__sign-in a {
    color: var(--lt-register-blue-hover);
    text-decoration: none;
}

.lt-register-form__sign-in a:hover {
    text-decoration: underline;
}

/* Fact list -------------------------------------------------------------- */

/* Two balanced columns that fall back to one when the row is too narrow, which
   is what the app does: it lays the four facts out as two column groups in a
   wrapping row. Columns are used rather than a grid because the facts never
   wrap their text, so a fixed two-track grid makes them collide. 210px per
   column plus the 20px gap needs 440px; live also shows one column at 480 and
   at 1024 to 1280, and two columns from 1366. */
.lt-register-form__facts {
    columns: 210px 2;
    column-gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lt-register-form__fact {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    /* Columns have no row-gap, so the pitch is a margin. The last fact carries
       one too, which is the 16px the app has below the block on mobile. */
    margin: 0 0 16px;
    break-inside: avoid;
    font-size: 16px;
    line-height: 1.5;
    /* Long translations widen the layout instead of wrapping, same as the app. */
    white-space: nowrap;
}

.lt-register-form__fact-icon {
    flex: 0 0 auto;
    align-self: center;
    width: 12px;
    height: 12px;
    background-color: var(--lt-register-blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%3E%3Cpolygon%20fill='%23000'%20points='5.5%2011.9993304%2014%203.49933039%2012.5%202%205.5%208.99933039%201.5%204.9968652%200%206.49933039'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%3E%3Cpolygon%20fill='%23000'%20points='5.5%2011.9993304%2014%203.49933039%2012.5%202%205.5%208.99933039%201.5%204.9968652%200%206.49933039'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

/* Processing and success ------------------------------------------------- */

.lt-register-form__step--processing,
.lt-register-form__step--success {
    text-align: center;
}

.lt-register-form__processing-body,
.lt-register-form__success-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.lt-register-form__step--success .lt-register-form__actions {
    margin-top: 40px;
}

/* Footer ----------------------------------------------------------------- */

.lt-register-form__footer {
    font-size: 14px;
    color: var(--lt-register-text-low);
}

.lt-register-form__footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lt-register-form__footer-link {
    color: inherit;
    text-decoration: none;
}

.lt-register-form__footer-link:hover {
    color: var(--lt-register-text-high);
}

.lt-register-form__copyright {
    color: inherit;
}

/* Testimonial column ----------------------------------------------------- */

.lt-register-form__column--panel {
    /* The app only shows this column from 1024px. */
    display: none;
}

.lt-register-form__quote {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* The card hugs its content instead of filling the panel: 512px of quote
       plus 2 x 32px of padding, measured 576px wide on the live page. */
    align-items: center;
    flex: 1 1 auto;
    min-height: 100%;
    margin: 0;
    padding: 64px;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.lt-register-form__quote[data-image='timoor'] {
    background-image: url('images/timoor.jpg');
}

.lt-register-form__quote[data-image='matt'] {
    background-image: url('images/matt.webp');
}

.lt-register-form__quote-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 32px;
    background-color: var(--lt-register-overlay-40);
    border-radius: var(--lt-register-radius-card);
}

.lt-register-form__quote-text {
    max-width: 512px;
    margin: 0 auto;
    font-size: 24px;
    line-height: 1.5;
}

.lt-register-form__quote-author {
    display: flex;
    flex-direction: column;
}

.lt-register-form__quote-name {
    font-size: 16px;
    font-weight: 700;
}

.lt-register-form__quote-role {
    font-size: 16px;
}

/* 480px and up ----------------------------------------------------------- */

@media (min-width: 480px) {
    .lt-register-form__gutter {
        padding: 12px 48px 24px;
    }

    .lt-register-form__center {
        margin-bottom: 32px;
    }

    .lt-register-form__title {
        font-size: 32px;
    }

    .lt-register-form__banner {
        margin-bottom: 32px;
    }

    .lt-register-form__fields {
        margin-bottom: 32px;
    }

    .lt-register-form__step--1 .lt-register-form__actions {
        margin-bottom: 48px;
    }

    .lt-register-form__step--2 .lt-register-form__actions {
        margin-bottom: 20px;
    }

    .lt-register-form__sign-in {
        margin-bottom: 40px;
    }

    /* The app drops the space below the fact list from 480px up. The last fact
       still carries its own 16px, so it is pulled back here. */
    .lt-register-form__facts {
        margin-bottom: -16px;
    }
}

/* 1024px and up: the second column appears. A hand-written query, not a theme
   breakpoint, and it belongs to nothing but the panel. */

@media (min-width: 1024px) {
    .lt-register-form__column--panel {
        display: flex;
        flex: 0 1 90vh;
    }
}
