/* ------------------------------------------------------------------ fonts */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* -------------------------------------------------------------- variables */

:root {
    --sa-bg: #F9FAFD;
    --sa-surface: #FFFFFF;
    --sa-brand: #3755A9;
    --sa-brand-dark: #2C4587;
    --sa-text: #262626;
    --sa-muted: #666666;
    --sa-border: #DBDCDD;
    --sa-disabled: #BCC7E8;
    --sa-error: #F44336;

    --sa-rule-pending: #F44336;
    --sa-rule-done: #3755A9;
    --sa-rule-static: #666666;

    --sa-field-h: 48px;
    --sa-gap: 9px;
    --sa-container: 600px;
    --sa-pad: 16px;

    --sa-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------- base */

html:has(.sa-page),
body:has(.sa-page) {
    background-color: var(--sa-bg);
}

body:has(.sa-page) .header_media,
body:has(.sa-page) .content_wrapper {
    background-color: var(--sa-bg);
}

.sa-page {
    background: var(--sa-bg);
    box-shadow: 0 0 0 100vmax var(--sa-bg);
    clip-path: inset(0 -100vmax);
    clip-path: inset(0 min(0px, 50% - 50vw));
    min-height: 100vh;
    padding: 32px 0 48px;
    font-family: var(--sa-font);
    font-size: 16px;
    line-height: normal;
    color: var(--sa-text);
    -webkit-font-smoothing: antialiased;
}

.sa-page :where(p, span, label, h1, h2, h3) {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font-feature-settings: inherit;
}

.sa-page :where(a) {
    color: var(--sa-brand);
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

html .sa-page a,
html .sa-page h1,
html .sa-page h2,
html .sa-page h3 {
    font-family: inherit !important;
}

.sa-card {
    width: 100%;
    max-width: var(--sa-container);
    margin: 0 auto;
    padding: 0 var(--sa-pad);
    padding: 0 max(0px, var(--sa-pad) - (100vw - 100%) / 2);
    box-sizing: border-box;
}

.sa-title {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sa-text);
}

/* ------------------------------------------------- social sign-in buttons */

.sa-social {
    display: flex;
    flex-direction: column;
    gap: var(--sa-gap);
}

.sa-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    height: var(--sa-field-h);
    padding: 0 16px;

    background: var(--sa-surface);
    border: 1px solid var(--sa-brand);
    border-radius: 0;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--sa-brand);

    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.sa-social-btn:hover:not(:disabled) {
    background: #F2F5FC;
}

.sa-social-btn:focus-visible {
    outline: 2px solid var(--sa-brand);
    outline-offset: 2px;
}

.sa-social-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.sa-social-btn svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.sa-social-btn.is-busy .sa-social-label {
    visibility: hidden;
}

.sa-social-btn.is-busy::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--sa-brand);
    border-top-color: transparent;
    border-radius: 50%;
    animation: sa-spin .7s linear infinite;
}

.sa-social-btn {
    position: relative;
}

@keyframes sa-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sa-social-btn.is-busy::after { animation-duration: 2s; }
}

/* ----------------------------------------------------------- "or" divider */

.sa-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--sa-muted);
    font-size: 14px;
}

.sa-divider::before,
.sa-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sa-border);
}

/* ------------------------------------------------------------ form fields */

.sa-field {
    margin-bottom: 20px;
}

.sa-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--sa-muted);
}

.sa-input {
    width: 100%;
    height: var(--sa-field-h);
    padding: 0 14px;
    box-sizing: border-box;

    background: var(--sa-surface);
    border: 1px solid var(--sa-border);
    border-radius: 0;

    font-family: inherit;
    font-size: 15px;
    color: var(--sa-text);
}

.sa-input::placeholder {
    color: #9A9A9A;
}

.sa-input:focus {
    outline: none;
    border-color: var(--sa-brand);
    box-shadow: inset 0 0 0 1px var(--sa-brand);
}

.sa-input[aria-invalid="true"] {
    border-color: var(--sa-error);
}

@keyframes sa-autofill {
    from {}
    to {}
}

@keyframes sa-autofill-end {
    from {}
    to {}
}

.sa-input:-webkit-autofill {
    animation: sa-autofill 1ms;
}

.sa-input:not(:-webkit-autofill) {
    animation: sa-autofill-end 1ms;
}

.sa-input-wrap {
    position: relative;
}

.sa-input-wrap .sa-input {
    padding-right: 44px;
}

.sa-reveal {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: var(--sa-field-h);

    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--sa-muted);
}

.sa-reveal:focus-visible {
    outline: 2px solid var(--sa-brand);
    outline-offset: -2px;
}

.sa-reveal .sa-icon-hide {
    display: none;
}

.sa-reveal[aria-pressed="true"] .sa-icon-show {
    display: none;
}

.sa-reveal[aria-pressed="true"] .sa-icon-hide {
    display: block;
}

.sa-phone {
    position: relative;
    height: var(--sa-field-h);
    background: var(--sa-surface);
    border: 1px solid var(--sa-border);
    box-sizing: border-box;
}

.sa-phone:focus-within {
    border-color: var(--sa-brand);
    box-shadow: inset 0 0 0 1px var(--sa-brand);
}

/* --------------------------------------------------------------- consents */

.sa-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.sa-page .sa-check input[type="checkbox"] {
    -webkit-appearance: none !important;
       -moz-appearance: none !important;
            appearance: none !important;

    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    clip: auto !important;
    clip-path: none !important;

    flex: none;
    box-sizing: border-box;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    margin: 3px 0 0;
    padding: 0;

    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    border: 1.5px solid #666666;
    border-radius: 0 !important;

    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

.sa-page .sa-check input[type="checkbox"]:hover {
    border-color: var(--sa-brand);
}

.sa-page .sa-check input[type="checkbox"]:checked {
    background-color: var(--sa-brand);
    border-color: var(--sa-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sa-page .sa-check input[type="checkbox"]:focus,
.sa-page .sa-check input[type="checkbox"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.sa-page .sa-check input[type="checkbox"]:focus-visible {
    border-color: var(--sa-brand);
}

.sa-page .has-error .sa-check input[type="checkbox"] {
    border-color: var(--sa-error);
}

.sa-check a {
    color: var(--sa-brand);
    text-decoration: underline;
}

/* ----------------------------------------------------------------- submit */

.sa-submit {
    width: 100%;
    height: var(--sa-field-h);
    margin-top: 8px;

    background: var(--sa-brand);
    border: 0;
    border-radius: 0;

    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;

    cursor: pointer;
    transition: background-color .15s ease;
}

.sa-submit:hover:not(:disabled) {
    background: var(--sa-brand-dark);
}

.sa-submit:disabled {
    background: var(--sa-disabled);
    cursor: not-allowed;
}

.sa-submit.is-inactive,
.sa-submit.is-inactive:hover {
    background: var(--sa-disabled);
    cursor: not-allowed;
}

.sa-submit:focus-visible {
    outline: 2px solid var(--sa-brand);
    outline-offset: 2px;
}

.sa-submit.is-busy,
.sa-submit.is-busy:hover,
.sa-submit.is-busy:disabled {
    background: var(--sa-brand);
    cursor: progress;
}

.sa-submit .fa-spinner {
    margin-right: 8px;
}

/* ------------------------------------------------------------ footer link */

.sa-alt {
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: var(--sa-text);
}

.sa-alt a {
    color: var(--sa-brand);
    font-weight: 600;
    text-decoration: none;
}

.sa-alt a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------- messages */

.sa-message {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid transparent;
}

.sa-message.is-visible {
    display: block;
}

.sa-message.is-error {
    background: #FEF3F2;
    border-left-color: var(--sa-error);
    color: #B3261E;
}

.sa-message.is-info {
    background: #F1F5FE;
    border-left-color: var(--sa-brand);
    color: var(--sa-brand-dark);
}

/* ----------------------------------------------------------- 768px and up */

@media (min-width: 768px) {

    .sa-page {
        padding: 56px 0 64px;
    }

    .sa-card {
        padding: 0 24px;
    }

    .sa-title {
        margin-bottom: 28px;
        font-size: 40px;
        text-align: center;
    }

    .sa-social {
        flex-direction: row;
    }

    .sa-social-btn {
        flex: 1;
        min-width: 0;
        font-size: 14px;
    }

    .sa-social-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ---------------------------------------------------------- 1024px and up */

@media (min-width: 1024px) {

    .sa-page {
        padding: 72px 0 80px;
    }

    .sa-card {
        padding: 0;
    }

    .sa-title {
        font-size: 48px;
        margin-bottom: 32px;
    }
}

/* ------------------------------------------ field messages and validation */

.sa-error-text {
    display: none;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sa-error);
}

.sa-error-text.is-visible {
    display: block;
}

.sa-hint {
    display: none;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sa-rule-static);
}

.sa-hint.is-visible {
    display: block;
}

.sa-rule {
    font-weight: 700;
    color: var(--sa-rule-pending);
    transition: color .15s ease;
}

.sa-rule.is-done {
    color: var(--sa-rule-done);
}

.sa-hint.is-untouched .sa-rule {
    color: var(--sa-rule-static);
    font-weight: 600;
}

.sa-hint.is-latin-error {
    color: var(--sa-error);
}

.has-error .sa-input,
.has-error .sa-phone {
    border-color: var(--sa-error);
}

.has-error .sa-input:focus,
.has-error .sa-phone:focus-within {
    box-shadow: inset 0 0 0 1px var(--sa-error);
}

.has-error .sa-phone .sa-input,
.has-error .sa-phone .iti input {
    border-color: transparent;
}

.sa-consent {
    margin-bottom: 16px;
}

.sa-consent .sa-check {
    margin-bottom: 0;
}

.sa-consent .sa-error-text {
    margin-top: 6px;
    padding-left: 32px;
}

/* ------------------------------------------- phone field (intl-tel-input) */

.sa-phone .iti {
    display: block;
    width: 100%;
    height: 100%;
}

.sa-phone .iti--separate-dial-code .iti__selected-flag {
    background-color: transparent;
    border-right: 1px solid var(--sa-border);
    padding: 0 10px 0 12px;
}

.sa-phone .iti--separate-dial-code .iti__selected-flag:hover,
.sa-phone .iti--separate-dial-code .iti__selected-flag:focus {
    background-color: #F2F5FC;
}

.sa-phone .iti--separate-dial-code .iti__selected-dial-code {
    margin-left: 8px;
    font-size: 15px;
    color: var(--sa-text);
}

.sa-phone .iti__arrow {
    width: 7px;
    height: 7px;
    margin-left: 10px;
    margin-top: -3px;
    border: 0;
    border-right: 1.5px solid var(--sa-muted);
    border-bottom: 1.5px solid var(--sa-muted);
    transform: rotate(45deg);
}

.sa-phone .iti__arrow--up {
    margin-top: 3px;
    transform: rotate(-135deg);
    border-right-color: var(--sa-muted);
    border-bottom-color: var(--sa-muted);
}

.sa-phone .iti input,
.sa-phone .iti input[type="tel"] {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--sa-text);
    box-sizing: border-box;
}

.sa-phone .iti input:focus {
    outline: none;
    box-shadow: none;
}

.sa-phone .iti input::placeholder {
    color: #9A9A9A;
}

.sa-phone .iti__country-list {
    border-radius: 0;
    border: 1px solid var(--sa-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    font-size: 14px;
}

.sa-phone .iti__country.iti__highlight {
    background-color: #F2F5FC;
}

.sa-phone .iti__dial-code {
    color: var(--sa-muted);
}