:root {
    --error-color: #DC362E;
    --checkbox-on-icon: url('/static/images/icons/checkbox-on.svg');
}

.header-text {
    font-size: 38px;
    font-style: normal;
    font-weight: 800;
    line-height: 130%;
    margin: 0;
}

.auth-button {
    display: flex;
    height: 52px;
    width: 100%;
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 600px;
}

.decorated-text {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.bottom-text {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    color: #FFF
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    user-select: none;
    -webkit-user-select: none;

    input[type="checkbox"] {
        appearance: none;

        width: 22px;
        height: 22px;
        align-items: center;

        border-radius: 8px;
        border: 1px solid var(--blocks-line);
        background: var(--blocks-line);
    }

    input[type="checkbox"]:checked {
        border: 0;
        background: transparent var(--checkbox-on-icon);
    }
}

.error-text {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: var(--error-color);
    margin: 0;
}

.text-field {
    position: relative;

    width: 100%;
    height: 68px;
    box-sizing: border-box;
    padding: 12px 16px;

    display: flex;
    align-items: center;

    border: 1px solid var(--blocks-line);
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;

    input {
        width: 100%;
        box-sizing: border-box;
        padding: 0;

        border: 0;
        outline: none;

        background: var(--wyg-q-color);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        font: inherit;
        caret-color: var(--text-color-secondary);

        transition: padding-top 150ms ease;
    }

    label {
        position: absolute;
        top: 12px;
        left: 16px;

        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;

        color: var(--text-color-secondary);

        opacity: 0;
        pointer-events: none;

        transition: opacity 150ms ease;
    }

    input::placeholder {
        color: var(--text-color-secondary);
        -webkit-text-fill-color: var(--text-color-secondary);
        opacity: 1;
    }

    input:focus {
        align-self: end;

        background: var(--text-color-primary);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    input:focus::placeholder {
        font-size: 0;
        opacity: 0;
    }

    input:focus + label {
        opacity: 1;
    }

    input:not(:placeholder-shown) {
        align-self: end;
    }

    input:not(:placeholder-shown) + label {
        opacity: 1;
    }

    &:focus-within {
        border-color: var(--color-primary);
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-text-fill-color: var(--text-color-secondary) !important;
        background: var(--text-color-secondary);
        background-clip: text;
        -webkit-background-clip: text;

        caret-color: var(--text-color-secondary);
    }
}

.password-field {
    input {
        margin-right: 50px;
    }

    .password-visibility-toggle {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);

        width: 32px;
        height: 32px;
        padding: 0;

        display: grid;
        place-items: center;

        border: 0;
        outline: none;
        background: transparent;
        cursor: pointer;
    }

    .hide-password-icon {
        display: none;
    }

    .password-visibility-toggle[aria-pressed="true"] {
        .show-password-icon {
            display: none;
        }

        .hide-password-icon {
            display: inline;
        }
    }
}

.oauth-provider {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 14px 20px;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    border: 0;

    background: var(--block-background);
    text-decoration: none;

    span {
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        text-decoration: none;

        background: var(--text-color-primary);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.legal-agreement-text {
    font-weight: 600;
    font-size: 16px;

    > a {
        text-decoration: none;
        border-bottom: none;

        background: var(--color-primary);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}