/* Customer account: authentication. */
.fujida-login-page {
    --account-blue: #4d6aff;
    --account-border: #d9dde3;
    --account-error: #b4232d;
    position: relative;
    width: 100%;
    min-height: 740px;
    padding: 0;
    color: #15171a;
    background: #fff;
    font-family: Inter, Arial, sans-serif;
}

.fujida-login-page *,
.fujida-login-page *::before,
.fujida-login-page *::after {
    box-sizing: border-box;
}

.fujida-login-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 740px;
    padding: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.fujida-login-form,
.fujida-code-form {
    position: absolute;
    top: 152px;
    left: 50%;
    display: flex;
    margin: 0;
    flex-direction: column;
    align-items: center;
    background: #fff;
    transform: translateX(-50%);
}

.fujida-login-form[hidden],
.fujida-code-form[hidden],
.fujida-code-form__timer[hidden],
.fujida-code-form__resend[hidden] {
    display: none;
}

.fujida-login-form .fujida-account-check[hidden] {
    display: none;
}

.fujida-login-form {
    width: 420px;
    gap: 28px;
}

.fujida-code-form {
    width: 500px;
    gap: 24px;
}

.fujida-login-form h1,
.fujida-code-form h1 {
    width: 100%;
    margin: 0;
    color: #000;
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: -1.08px;
    text-align: center;
}

.fujida-login-form [data-registration-heading] {
    min-height: 0;
}

.fujida-login-form [data-registration-heading]:focus {
    outline: none;
}

.fujida-login-form__phone-field {
    display: flex;
    width: 320px;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    color: #747474;
}

.fujida-login-form__phone-field > span {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
}

.fujida-login-form__phone {
    display: block;
    width: 248px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--account-border);
    border-radius: 10px;
    color: #474747;
    background: #fff;
    font: 400 16px/24px Inter, Arial, sans-serif;
    letter-spacing: 0;
    text-align: center;
}

.fujida-login-form__phone::placeholder {
    color: #bababa;
    opacity: 1;
}

.fujida-login-form__phone:focus {
    border-color: var(--account-blue);
    outline: 0;
}

.fujida-login-form__phone-field.has-error .fujida-login-form__phone {
    border-color: var(--account-error);
}

.fujida-login-form__phone-field > .fujida-field-error,
.fujida-login-form__consents > .fujida-field-error {
    display: none;
}

.fujida-login-form__submit {
    display: inline-flex;
    width: auto;
    min-width: 90px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #000;
    font: 500 14px/20px Inter, Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.fujida-login-form__submit:disabled {
    color: #747474;
    background: #e3e3e3;
    cursor: default;
}

.fujida-login-form__consents {
    display: flex;
    width: min(328px, 100%);
    margin-inline: auto;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.fujida-login-form .fujida-account-check {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: flex-start;
    color: #747474;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    text-align: left;
}

.fujida-login-form .fujida-account-check input {
    appearance: none;
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    border: 1px solid #777;
    border-radius: 4px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.fujida-login-form .fujida-account-check input:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 20.5158 15.6508'%3E%3Cpath d='M6.51583 12.3492L1.65083 7.48417L0 9.135L6.51583 15.6508L20.5158 1.65083L18.865 0L6.51583 12.3492Z' fill='%234D6AFF'/%3E%3C/svg%3E");
}

.fujida-login-form .fujida-account-check a,
.fujida-login-note a,
.fujida-login-back,
.fujida-code-form__resend {
    color: var(--account-blue);
    text-decoration: underline;
    text-underline-position: from-font;
}

.fujida-login-note {
    width: min(376px, 100%);
    margin: 0;
    color: #747474;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.fujida-login-back {
    padding: 0;
    border: 0;
    background: transparent;
    font: 400 14px/20px Inter, Arial, sans-serif;
    cursor: pointer;
}

.fujida-code-form .fujida-login-back {
    order: 5;
}

.fujida-login-form > .fujida-form-message {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    width: 100%;
    min-height: 0;
    margin: 0;
    color: var(--account-error);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.fujida-login-form > .fujida-form-message:empty {
    display: none;
}

.fujida-code-form__instruction {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    overflow: hidden;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.fujida-code-form__instruction p {
    width: 100%;
    margin: 0;
}

.fujida-code-form__instruction [data-code-caption] {
    color: #747474;
}

.fujida-code-form__instruction > p:last-child {
    color: #474747;
}

.fujida-code-inputs {
    position: static;
    display: grid;
    width: 256px;
    grid-template-columns: repeat(4, 52px);
    gap: 16px;
    transform: none;
}

.fujida-code-inputs input {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--account-border);
    border-radius: 10px;
    color: #474747;
    background: #fff;
    font: 500 18px/24px Inter, Arial, sans-serif;
    text-align: center;
}

.fujida-code-inputs input:focus {
    border-color: var(--account-blue);
    outline: 0;
}

.fujida-code-form.is-code-error .fujida-code-inputs input {
    border-color: var(--account-error);
}

.fujida-code-form.is-code-expired .fujida-code-inputs input {
    color: #bababa;
}

.fujida-code-form__timer,
.fujida-code-form__resend,
.fujida-code-form > .fujida-form-message {
    width: 100%;
    min-height: 20px;
    margin: 0;
    border: 0;
    font: 400 14px/20px Inter, Arial, sans-serif;
    text-align: center;
}

.fujida-code-form__timer {
    order: 4;
    color: #747474;
}

.fujida-code-form__resend {
    order: 4;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.fujida-code-form > .fujida-form-message {
    order: 3;
    color: red;
}

.fujida-code-form > .fujida-form-message:empty {
    display: none;
}

.fujida-code-form .fujida-login-form__submit {
    display: none;
}

@media (max-width: 767px) {
    .fujida-login-page,
    .fujida-login-card {
        min-height: 844px;
    }

    .fujida-login-form,
    .fujida-code-form {
        top: 132px;
        width: calc(100% - 32px);
        max-width: 358px;
    }

    .fujida-login-form h1,
    .fujida-code-form h1 {
        min-height: 88px;
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -1.08px;
        text-wrap: balance;
    }

    .fujida-login-form .fujida-account-check span {
        width: calc(100% - 32px);
    }

    .fujida-login-form__phone-field {
        width: min(320px, 100%);
    }
}
